wscript: Add # flake8: noqa linter directive

This commit is contained in:
Christian Clauss
2025-06-13 12:47:50 +02:00
committed by Peter Barker
parent 15e2d9e5f3
commit dc9446af62
19 changed files with 20 additions and 11 deletions

View File

@@ -55,7 +55,8 @@ repos:
rev: 7.2.0
hooks:
- id: flake8
args:
- Tools
# # Use to sort python imports by name and put system import first.
# - repo: https://github.com/pycqa/isort
# rev: 5.12.0

View File

@@ -21,4 +21,3 @@ def build(bld):
use='AP_FW_Controller_test_libs',
program_groups=['examples'],
)

View File

@@ -4,5 +4,5 @@
def build(bld):
bld.ap_find_tests(
use='ap',
DOUBLE_PRECISION_SOURCES = ['test_location.cpp']
DOUBLE_PRECISION_SOURCES=['test_location.cpp']
)

View File

@@ -6,5 +6,5 @@ def build(bld):
bld.ap_find_tests(
use='ap',
DOUBLE_PRECISION_SOURCES = ['test_ap_dds_external_odom.cpp']
DOUBLE_PRECISION_SOURCES=['test_ap_dds_external_odom.cpp']
)

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env python3
# flake8: noqa
import pathlib
from dataclasses import dataclass
from collections import defaultdict

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
from waflib.TaskGen import after_method, before_method, feature
def build(bld):

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
def build(bld):
if bld.env.BOOTLOADER:
bld.ap_program(
@@ -11,4 +11,4 @@ def build(bld):
)
bld.ap_stlib(name= 'JEDEC_libs',
ap_vehicle='AP_Bootloader',
ap_libraries= ['AP_FlashIface', 'AP_HAL_Empty'])
ap_libraries=['AP_FlashIface', 'AP_HAL_Empty'])

View File

@@ -4,4 +4,3 @@ def build(bld):
bld.ap_find_tests(
use='ap',
)

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
def build(bld):
bld.ap_stlib(

View File

@@ -4,5 +4,5 @@
def build(bld):
bld.ap_find_tests(
use='ap',
DOUBLE_PRECISION_SOURCES = ['test_math_double.cpp', 'test_vector3.cpp']
DOUBLE_PRECISION_SOURCES=['test_math_double.cpp', 'test_vector3.cpp']
)

View File

@@ -4,5 +4,5 @@
def build(bld):
bld.ap_find_tests(
use='ap',
DOUBLE_PRECISION_SOURCES = []
DOUBLE_PRECISION_SOURCES=[]
)

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# flake8: noqa
import pathlib
import platform

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
'''
build generated bindings from bindings.desc for AP_Scripting
'''

View File

@@ -4,5 +4,5 @@
def build(bld):
bld.ap_find_tests(
use='ap',
DOUBLE_PRECISION_SOURCES = ['test_math_double.cpp', 'test_vector3.cpp']
DOUBLE_PRECISION_SOURCES=['test_math_double.cpp', 'test_vector3.cpp']
)

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
'''
build generated bindings from bindings.desc for AP_Scripting
'''

View File

@@ -4,5 +4,5 @@
def build(bld):
bld.ap_find_tests(
use='ap',
DOUBLE_PRECISION_SOURCES = ['test_notchfilter.cpp']
DOUBLE_PRECISION_SOURCES=['test_notchfilter.cpp']
)

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
def build(bld):

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
# flake8: noqa
def build(bld):

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8
# flake8: noqa
import os.path
import os