|
@@ -1,37 +1,12 @@
|
|
|
[flake8]
|
|
|
ignore =
|
|
|
- E265, # block comment should start with '# '
|
|
|
- E266, # too many leading '#' for block comment
|
|
|
+ E203, # whitespace before ':' (Black)
|
|
|
+ W503, # line break before binary operator (Black)
|
|
|
E402, # module level import not at top of file
|
|
|
E722, # do not use bare 'except'
|
|
|
E741, # ambiguous variable name 'l'
|
|
|
F841, # local variable 'center' is assigned to but never used
|
|
|
- E121, # continuation line under-indented for hanging indent
|
|
|
- E125, # continuation line with same indent as next logical line
|
|
|
- E127, # continuation line over-indented for visual indent
|
|
|
- E128, # continuation line under-indented for visual indent
|
|
|
- E202, # whitespace before ')'
|
|
|
- E211, # whitespace before '['
|
|
|
- E221, # multiple spaces before operator
|
|
|
- E225, # missing whitespace around operator
|
|
|
- E226, # missing whitespace around arithmetic operator
|
|
|
- E231, # missing whitespace after ','
|
|
|
- E251, # unexpected spaces around keyword / parameter equals
|
|
|
- E261, # at least two spaces before inline comment
|
|
|
- E271, # multiple spaces after keyword
|
|
|
- E272, # multiple spaces before keyword
|
|
|
- E302, # expected 2 blank lines, found 1
|
|
|
- E303, # too many blank lines (2)
|
|
|
- E305, # expected 2 blank lines after class or function definition, found 1
|
|
|
E501, # line too long (161 > 150 characters)
|
|
|
- W293, # blank line contains whitespace
|
|
|
- W503, # line break before binary operator
|
|
|
- W504, # line break after binary operator
|
|
|
-
|
|
|
-# Ignores for Black compatibility
|
|
|
-# This is not to be removed unlike the ones in ignore.
|
|
|
-extend-ignore =
|
|
|
- E203, # whitespace before ':' (in a slice the colon acts like a binary operator)
|
|
|
|
|
|
max-line-length = 88
|
|
|
exclude =
|
|
@@ -47,5 +22,6 @@ exclude =
|
|
|
ctypes,
|
|
|
pydispatch,
|
|
|
testsuite,
|
|
|
+
|
|
|
builtins =
|
|
|
_
|