From 85b1d254c480298943764d0ace07cf63ce8886f7 Mon Sep 17 00:00:00 2001 From: davfsa Date: Sun, 27 Nov 2022 11:01:41 +0100 Subject: [PATCH] Remove in-line comments for ignore https://github.com/PyCQA/flake8/issues/1760 --- .flake8 | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.flake8 b/.flake8 index 9051c36c7..667e1f331 100644 --- a/.flake8 +++ b/.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 =