-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
31 lines (24 loc) · 1.08 KB
/
.flake8
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
# Switched off for all files:
# E501: line too long
# Stubs have a longer suggested maximum line length, and
# the scripts here follow the 79-character limit loosely.
# Irrelevant for stub files:
# E301: expected 1 blank line, found 0
# E302: expected 2 blank lines, found 0
# E305: expected 2 blank lines after end of function or class
# E701: multiple statements on one line (colon)
# F401: module imported but unused
# F822: undefined name name in __all__
# Dictated by source, not stubs:
# E741: do not use variables named 'l', 'O', or 'I'
# F403: 'from module import *' used; unable to detect undefined names
# Y042: Type alias names should use CamelCase rather than snake_case.
# The auto-generated panda3d stubs don't conform to these rules:
# Y021: Docstrings should not be included in stubs.
[flake8]
extend-ignore = E501
per-file-ignores =
src/direct-stubs/*.pyi: E301, E302, E305, E701, E741, F401, F403, F822, Y042
src/panda3d-stubs/*.pyi: E301, E302, E305, E701, E741, F401, F403, Y021, Y042
extend-exclude = venv
noqa_require_code = true