[flake8]
application-import-names =
  qrules
filename =
  ./docs/*.py
  ./src/*.py
  ./tests/*.py
exclude =
  **/__pycache__
  **/_build
  /typings/**
ignore =
  # False positive with attribute docstrings
  B018
  # https://github.com/psf/black#slices
  E203
  # allowed by black
  E231
  # already covered by black
  E302
  # https://github.com/psf/black#line-length
  E501
  # avoid any from __future__ import annotations, in combination with FI58
  FI
  # should be possible to use {} in latex strings
  FS003
  # block quote ends without a blank line (black formatting)
  RST201
  # missing pygments
  RST299
  # unexpected indentation (related to google style docstring)
  RST301
  # enforce type ignore with mypy error codes (combined --extend-select=TI100)
  TI1
  # https://github.com/psf/black#line-breaks--binary-operators
  W503
extend-select =
  FI58
  TI100
per-file-ignores =
  # casts with generics
  src/qrules/topology.py:E731
rst-roles =
  attr
  cite
  class
  doc
  download
  file
  func
  meth
  mod
  ref
rst-directives =
  autolink-preface
  automethod
  deprecated
  envvar
  exception
  seealso
