diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-08-20 09:39:49 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-08-20 09:39:49 +0200 |
commit | 917f01a8306055b21437deac35333dddd1210e39 (patch) | |
tree | 9c9d0adb2a0727844dd09885e5862883f041b325 /.flake8 | |
parent | ee3f43985eac472b506ba3d5f91a7a1cab8ab57c (diff) |
Update formater in the Makefile with flake8 and autopep8/autoflake
Diffstat (limited to '.flake8')
-rw-r--r-- | .flake8 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..b4a2600a --- /dev/null +++ b/.flake8 @@ -0,0 +1,21 @@ +[flake8] + +ignore = + W504 # line break after binary operator + + # --- flake8-bugbear plugin + B007 # Loop control variable 'keyword' not used within the loop body. If this is intended, start the name with an underscore. + B014 # Redundant exception types in `except (IOError, OSError) as err:`. Write `except OSError as err:`, which catches exactly the same exceptions. + B008 # Do not perform function calls in argument defaults. + + # --- flake8-blind-except plugin + B902 # blind except Exception: statement + + # --- flake8-quotes plugin + Q000 # Double quotes found but single quotes preferred + + # --- flake8-quotes naming; disable all except N804 and N805 + N801, N802, N803, N806, N807, N811, N812, N813, N814, N815, N816, N817, N818 + +# lines should not exceed 120 characters +max-line-length = 120 |