2016-01-21 18:11:31 +01:00
|
|
|
[flake8]
|
2016-07-21 14:55:50 +02:00
|
|
|
exclude = .*,__pycache__,resources.py
|
2016-01-21 18:11:31 +01:00
|
|
|
# E128: continuation line under-indented for visual indent
|
|
|
|
# E226: missing whitespace around arithmetic operator
|
|
|
|
# E265: Block comment should start with '#'
|
|
|
|
# E501: Line too long
|
|
|
|
# E402: module level import not at top of file
|
|
|
|
# E266: too many leading '#' for block comment
|
2017-02-05 01:45:23 +01:00
|
|
|
# E722: do not use bare except
|
2016-08-23 07:47:48 +02:00
|
|
|
# E731: do not assign a lambda expression, use a def
|
|
|
|
# (for pytest's __tracebackhide__)
|
2016-01-21 18:11:31 +01:00
|
|
|
# F401: Unused import
|
2016-01-21 22:16:24 +01:00
|
|
|
# N802: function name should be lowercase
|
2017-07-12 14:19:31 +02:00
|
|
|
# N806: variable in function should be lowercase
|
2016-01-22 19:00:29 +01:00
|
|
|
# P101: format string does contain unindexed parameters
|
|
|
|
# P102: docstring does contain unindexed parameters
|
|
|
|
# P103: other string does contain unindexed parameters
|
2016-02-10 19:18:47 +01:00
|
|
|
# D102: Missing docstring in public method (will be handled by others)
|
|
|
|
# D103: Missing docstring in public function (will be handled by others)
|
|
|
|
# D104: Missing docstring in public package (will be handled by others)
|
|
|
|
# D105: Missing docstring in magic method (will be handled by others)
|
2017-11-26 19:50:13 +01:00
|
|
|
# D106: Missing docstring in public nested class (will be handled by others)
|
|
|
|
# D107: Missing docstring in __init__ (will be handled by others)
|
2016-02-10 19:18:47 +01:00
|
|
|
# D209: Blank line before closing """ (removed from PEP257)
|
|
|
|
# D211: No blank lines allowed before class docstring
|
|
|
|
# (PEP257 got changed, but let's stick to the old standard)
|
2017-11-26 19:50:13 +01:00
|
|
|
# D401: First line should be in imperative mood (okay sometimes)
|
2016-02-10 19:18:47 +01:00
|
|
|
# D402: First line should not be function's signature (false-positives)
|
2016-06-20 06:50:01 +02:00
|
|
|
# D403: First word of the first line should be properly capitalized
|
|
|
|
# (false-positives)
|
2017-11-26 19:50:13 +01:00
|
|
|
# D413: Missing blank line after last section (not in pep257?)
|
2016-01-21 23:22:31 +01:00
|
|
|
ignore =
|
2017-02-05 01:45:23 +01:00
|
|
|
E128,E226,E265,E501,E402,E266,E722,E731,
|
2016-01-21 23:22:31 +01:00
|
|
|
F401,
|
|
|
|
N802,
|
2016-01-22 19:13:23 +01:00
|
|
|
P101,P102,P103,
|
2017-11-26 19:50:13 +01:00
|
|
|
D102,D103,D106,D107,D104,D105,D209,D211,D401,D402,D403,D413
|
2016-05-30 23:53:46 +02:00
|
|
|
min-version = 3.4.0
|
2016-01-21 18:11:31 +01:00
|
|
|
max-complexity = 12
|
2017-11-24 16:25:01 +01:00
|
|
|
per-file-ignores =
|
|
|
|
tests/*/test_*.py : D100,D101,D401
|
|
|
|
tests/unit/browser/test_history.py : N806
|
|
|
|
tests/helpers/fixtures.py : N806
|
|
|
|
tests/unit/browser/webkit/http/test_content_disposition.py : D400
|
|
|
|
scripts/dev/ci/appveyor_install.py : FI53
|
2016-01-22 17:46:33 +01:00
|
|
|
copyright-check = True
|
|
|
|
copyright-regexp = # Copyright [\d-]+ .*
|
|
|
|
copyright-min-file-size = 110
|