Skip to content

Commit

Permalink
Remove in-line comments for ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa committed Nov 27, 2022
1 parent d6c8c98 commit 85b1d25
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .flake8
@@ -1,22 +1,31 @@
[flake8]
count = true

# A002: Argument is shadowing a python builtin.
# A003: Class attribute is shadowing a python builtin.
# CFQ002: Function has too many arguments.
# CFQ004: Function has too many returns.
# D102: Missing docstring in public method.
# D105: Magic methods not having a docstring.
# D412: No blank lines allowed between a section header and its content
# E402: Module level import not at top of file (isn't compatible with our import style).
# T101: TO-DO comment detection (T102 is FIX-ME and T103 is XXX).
# S101: Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
ignore =
A002, # Argument is shadowing a python builtin.
A003, # Class attribute is shadowing a python builtin.
CFQ002, # Function has too many arguments.
CFQ004, # Function has too many returns.
D102, # Missing docstring in public method.
D105, # Magic methods not having a docstring.
D412, # No blank lines allowed between a section header and its content
E402, # Module level import not at top of file (isn't compatible with our import style).
T101, # TO-DO comment detection (T102 is FIX-ME and T103 is XXX).
S101, # Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
A002,
A003,
CFQ002,
CFQ004,
D102,
D105,
D412,
E402,
T101,
S101,

# F401: unused import.
# F403: cannot detect unused vars if we use starred import
# FS003: f-string missing prefix.
# R102: unnecessary parenthesis on raised exception (raises false positives in places)
# S106: possible hardcoded password (we dont care about this in the tests)
# D106, D104, D103, D101, D100: Missing docstring in public function/class/module (ignore in tests)
per-file-ignores =
Expand Down

0 comments on commit 85b1d25

Please sign in to comment.