This repository was archived by the owner on Oct 8, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.cfg
More file actions
84 lines (68 loc) · 2.17 KB
/
Copy pathsetup.cfg
File metadata and controls
84 lines (68 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[flake8]
exclude =
.eggs,
.git,
.pybuild,
__pycache__,
build,
debian,
script,
venv
ignore =
# don't require set comprehensions
C401,
# Ignore flake8's complaints about import positions since we're using isort
E402,
# W503 and W504 conflict; ignore the one that is less visually appealing.
W504,
per-file-ignores =
# This is the example file, where we encourage use of `import *`.
# It also needs to be able to print easily.
controllers/example_controller/example_controller.py:F403,F405,T201
controllers/example_controller/keyboard_controller.py:F403,F405,T201
# Entry point file which needs to be able to print stuff
controllers/sr_controller/sr_controller.py:T201
# Supervisor controller which needs to be able to print stuff
controllers/competition_supervisor/competition_supervisor.py:T201
# Ignore stub-ness in our stub webots.
stubs/controller/__init__.py:A002,E704
stubs/controller/device.py:A002,E704
# Robot files should be able to print stuff
robots/**/*.py:T201
# try to keep it below 85, but this allows us to push it a bit when needed.
max_line_length = 95
noqa-require-code = True
[isort]
atomic = True
balanced_wrapping = True
combine_as_imports = True
include_trailing_comma = True
length_sort = True
multi_line_output = 3
order_by_type = False
float_to_top = True
default_section = THIRDPARTY
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[mypy]
mypy_path = modules, stubs
disallow_any_explicit = True
disallow_any_generics = True
disallow_subclassing_any = True
check_untyped_defs = True
disallow_untyped_defs = True
no_implicit_optional = True
strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = True
warn_unreachable = True
implicit_reexport = False
strict_equality = True
scripts_are_modules = True
warn_unused_configs = True
enable_error_code = ignore-without-code
[mypy-controller,controller.device]
# Ignore some warnings about the stubs that we don't care about.
# Our stubs are deliberately importable, rather than purely stubs,
# meaning that mypy treats them as code rather than stubs.
disable_error_code = empty-body