diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2022-12-27 12:41:12 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2022-12-27 12:41:12 +0100 |
commit | 8a9b61bcd5ae307e9c402deeecb424b750fdcfd8 (patch) | |
tree | 186643cc1138a834a50328249f555660c7157baa | |
parent | f943e7c78a812afd153f8e656df30988cffa4b67 (diff) | |
download | psutil-8a9b61bcd5ae307e9c402deeecb424b750fdcfd8.tar.gz |
fix flake8 config
-rw-r--r-- | .flake8 | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 |