diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-07-13 07:21:13 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-07-13 07:24:10 +0200 |
commit | 432816927431c8566cc127b8ded62cbb39468f8e (patch) | |
tree | 8fe785b0f4c1e42edb8ef47be32409453e77d276 /.flake8 | |
parent | 46bdfa2932bc183311b4f0ec6ae413a9c0201fef (diff) | |
download | qutebrowser-432816927431c8566cc127b8ded62cbb39468f8e.tar.gz qutebrowser-432816927431c8566cc127b8ded62cbb39468f8e.zip |
flake8 requirements: Get rid of ebb-lint
We've had many checks disabled - these are the ones we actually lose:
L104
Docstrings must use Napoleon, not reStructuredText fields.
L205
__init__.py is not allowed to contain function or class definitions.
L206
Implicit relative imports are not allowed.
L208
Pokémon exception handling is always a mistake. If the intent is
really to catch and ignore exceptions, explicitly name which
exception types to silence.
L209
return, del, raise, assert, print (in python 2, without
print_function) yield, and yield from are statements, not functions,
and as such, do not require parentheses.
L210
Instead of intentionally relying on the side effects of map, filter,
or a comprehension, write an explicit for loop.
L211
Using map or filter with a lambda as the first argument is always
better written as list comprehension or generator expression. An
expression is more readable and extensible, and less importantly,
doesn't incur as much function call overhead.
L212
Using @staticmethod is always wrong.
L301
Files must end with a trailing newline.
L303
noqa is ignored, and as such, # noqa comments should be deleted to
reduce pointless noise.
However, most of those are also checked by pylint (and the rest I don't
really care about), and ebb-lint increases flake8's runtime a lot
(45s -> almost 2min).
Diffstat (limited to '.flake8')
-rw-r--r-- | .flake8 | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -8,17 +8,6 @@ exclude = .venv,.hypothesis,.git,__pycache__,resources.py # E266: too many leading '#' for block comment # F401: Unused import # N802: function name should be lowercase -# 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. -# L302: The line was too long. # P101: format string does contain unindexed parameters # P102: docstring does contain unindexed parameters # P103: other string does contain unindexed parameters @@ -41,7 +30,6 @@ ignore = E128,E226,E265,E501,E402,E266, F401, N802, - L101,L102,L103,L201,L202,L203,L204,L207,L302, P101,P102,P103, D102,D103,D104,D105,D209,D211,D402,D403, H101,H201,H238,H301,H306 |