summaryrefslogtreecommitdiff
path: root/.flake8
blob: 200257852363e07358714d9f78986d3212ba921c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Configuration file for flake 8. This is used by "make lint" and by the
# GIT commit hook script.

[flake8]
ignore =
    W504  # line break after binary operator
    # --- flake8-bugbear
    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.
per-file-ignores =
   # T001 = print() statement
   setup.py:T001
   scripts/*:T001
   psutil/tests/runner.py:T001
   psutil/tests/test_memleaks.py:T001
   .github/workflows/*:T001