mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
32 lines
1.2 KiB
INI
32 lines
1.2 KiB
INI
[flake8]
|
|
max-line-length=100
|
|
count=True
|
|
show-source=False
|
|
statistics=True
|
|
exclude=.git, __pycache__, hyperglass/ui, hyperglass/plugins/external, hyperglass/api/examples/*.py, hyperglass/compat/_sshtunnel.py
|
|
filename=*.py
|
|
per-file-ignores=
|
|
hyperglass/main.py:E402
|
|
# Disable classmethod warning for validator decorators
|
|
hyperglass/models/*.py:N805,E0213,R0903,E501,C0301
|
|
hyperglass/models/api/*.py:N805,E0213,R0903,E501,C0301
|
|
hyperglass/models/commands/*.py:N805,E0213,R0903,E501,C0301
|
|
hyperglass/parsing/models/*.py:N805,E0213,R0903
|
|
hyperglass/defaults/*/*.py:E501
|
|
hyperglass/configuration/models/*.py:N805,E0213,R0903,E501,C0301
|
|
# Disable unused import warning for modules
|
|
hyperglass/*/__init__.py:F401
|
|
hyperglass/models/*/__init__.py:F401
|
|
# Disable assertion and docstring checks on tests.
|
|
hyperglass/**/test_*.py:S101,D103
|
|
hyperglass/state/hooks.py:F811
|
|
# Ignore whitespace in docstrings
|
|
hyperglass/cli/static.py:W293
|
|
# Ignore docstring standards
|
|
hyperglass/cli/main.py:D400,D403
|
|
ignore=W503,C0330,R504,D202,S403,S301,S404,E731,D402,IF100,B008
|
|
select=B, BLK, C, D, E, F, I, II, N, P, PIE, S, R, W
|
|
disable-noqa=False
|
|
hang-closing=False
|
|
max-complexity=10
|