From 8a9b61bcd5ae307e9c402deeecb424b750fdcfd8 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Tue, 27 Dec 2022 12:41:12 +0100 Subject: fix flake8 config --- .flake8 | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.flake8 b/.flake8 index 8be0bfcf..8347d048 100644 --- a/.flake8 +++ b/.flake8 @@ -3,18 +3,24 @@ [flake8] ignore = - W504 # line break after binary operator + # line break after binary operator + W504, # --- 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. + # Loop control variable 'keyword' not used within the loop body. If this is intended, start the name with an underscore. + B007, + # Redundant exception types in `except (IOError, OSError) as err:`. Write `except OSError as err:`, which catches exactly the same exceptions. + B014, + # Do not perform function calls in argument defaults. + B008, # --- flake8-blind-except plugin - B902 # blind except Exception: statement + # blind except Exception: statement + B902, # --- flake8-quotes plugin - Q000 # Double quotes found but single quotes preferred + # Double quotes found but single quotes preferred + Q000, # --- flake8-quotes naming; disable all except N804 and N805 N801, N802, N803, N806, N807, N811, N812, N813, N814, N815, N816, N817, N818 -- cgit v1.2.1