.flake8 917 B

123456789101112131415161718
  1. # TODO: incorporate this into pyproject.toml if flake8 supports it in the future.
  2. # See https://github.com/PyCQA/flake8/issues/234
  3. [flake8]
  4. # see https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
  5. # for error codes. The ones we ignore are:
  6. # W503: line break before binary operator
  7. # W504: line break after binary operator
  8. # E203: whitespace before ':' (which is contrary to pep8?)
  9. # E731: do not assign a lambda expression, use a def
  10. # E501: Line too long (black enforces this for us)
  11. #
  12. # flake8-bugbear runs extra checks. Its error codes are described at
  13. # https://github.com/PyCQA/flake8-bugbear#list-of-warnings
  14. # B019: Use of functools.lru_cache or functools.cache on methods can lead to memory leaks
  15. # B023: Functions defined inside a loop must not use variables redefined in the loop
  16. # B024: Abstract base class with no abstract method.
  17. ignore=W503,W504,E203,E731,E501,B019,B023,B024