mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-07 03:32:52 +08:00
wscript: Add # flake8: noqa linter directive
This commit is contained in:
committed by
Peter Barker
parent
15e2d9e5f3
commit
dc9446af62
@@ -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
|
||||
|
||||
@@ -21,4 +21,3 @@ def build(bld):
|
||||
use='AP_FW_Controller_test_libs',
|
||||
program_groups=['examples'],
|
||||
)
|
||||
|
||||
|
||||
@@ -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']
|
||||
)
|
||||
|
||||
@@ -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']
|
||||
)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
import pathlib
|
||||
from dataclasses import dataclass
|
||||
from collections import defaultdict
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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'])
|
||||
|
||||
@@ -4,4 +4,3 @@ def build(bld):
|
||||
bld.ap_find_tests(
|
||||
use='ap',
|
||||
)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
# flake8: noqa
|
||||
|
||||
def build(bld):
|
||||
bld.ap_stlib(
|
||||
|
||||
@@ -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']
|
||||
)
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
def build(bld):
|
||||
bld.ap_find_tests(
|
||||
use='ap',
|
||||
DOUBLE_PRECISION_SOURCES = []
|
||||
DOUBLE_PRECISION_SOURCES=[]
|
||||
)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# flake8: noqa
|
||||
|
||||
import pathlib
|
||||
import platform
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
# flake8: noqa
|
||||
'''
|
||||
build generated bindings from bindings.desc for AP_Scripting
|
||||
'''
|
||||
|
||||
@@ -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']
|
||||
)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
# flake8: noqa
|
||||
'''
|
||||
build generated bindings from bindings.desc for AP_Scripting
|
||||
'''
|
||||
|
||||
@@ -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']
|
||||
)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
# flake8: noqa
|
||||
|
||||
def build(bld):
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
# flake8: noqa
|
||||
|
||||
def build(bld):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user