2016-01-21 18:11:31 +01:00
|
|
|
[flake8]
|
|
|
|
exclude = .venv,.hypothesis,.git,__pycache__,resources.py
|
|
|
|
# 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
|
|
|
|
# F401: Unused import
|
2016-01-21 22:16:24 +01:00
|
|
|
# N802: function name should be lowercase
|
2016-01-21 23:22:31 +01:00
|
|
|
# L101: The __init__ method of classes must not have a docstring
|
|
|
|
# L102: A docstring was incorrectly formatted.
|
|
|
|
# L103: A test docstring must not start with any form of the words "test", ...
|
|
|
|
# L201: Container literals must have a trailing comma
|
|
|
|
# L202: print is not allowed except for debugging.
|
|
|
|
# L203: pdb and compatible modules are not allowed except for debugging.
|
|
|
|
# L204: Implicit string literal concatenation is only allowed if every string
|
|
|
|
# being concatenated is parenthesize
|
|
|
|
# L207: pass is only necessary in non-optional suites containing no other
|
|
|
|
# statements.
|
2016-01-22 19:39:21 +01:00
|
|
|
# L302: The line was too long.
|
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-01-22 19:13:23 +01:00
|
|
|
# D001: found assert_ replace it with assertTrue
|
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)
|
|
|
|
# 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)
|
|
|
|
# D402: First line should not be function's signature (false-positives)
|
2016-01-21 23:22:31 +01:00
|
|
|
ignore =
|
|
|
|
E128,E226,E265,E501,E402,E266,
|
|
|
|
F401,
|
|
|
|
N802,
|
2016-01-22 19:39:21 +01:00
|
|
|
L101,L102,L103,L201,L202,L203,L204,L207,L302,
|
2016-01-22 19:13:23 +01:00
|
|
|
P101,P102,P103,
|
2016-02-10 19:18:47 +01:00
|
|
|
D001,
|
|
|
|
D102,D103,D104,D105,D209,D211,D402
|
2016-01-21 18:11:31 +01:00
|
|
|
max-complexity = 12
|
2016-01-21 22:53:53 +01:00
|
|
|
putty-ignore =
|
|
|
|
/# pylint: disable=invalid-name/ : +N801,N806
|
2016-02-04 07:10:12 +01:00
|
|
|
/# pylint: disable=wildcard-import/ : +F403
|
2016-01-21 22:53:53 +01:00
|
|
|
/# pragma: no mccabe/ : +C901
|
|
|
|
/# flake8: disable=E131/ : +E131
|
|
|
|
/# flake8: disable=N803/ : +N803
|
|
|
|
/# flake8: disable=T002/ : +T002
|
|
|
|
/# flake8: disable=F841/ : +F841
|
2016-01-22 19:40:10 +01:00
|
|
|
/# flake8: disable=S001/ : +S001
|
2016-02-10 19:18:47 +01:00
|
|
|
tests/*/*/test_*.py : +D100,D101,D401
|
|
|
|
tests/*/test_*.py : +D100,D101,D401
|
|
|
|
tests/unit/browser/http/test_content_disposition.py : +D400
|
2016-01-22 17:46:33 +01:00
|
|
|
copyright-check = True
|
|
|
|
copyright-regexp = # Copyright [\d-]+ .*
|
|
|
|
copyright-min-file-size = 110
|