[tool:pytest]
# Note: coverage is configured in .coveragerc
addopts = --cov --cov-config=.coveragerc
python_files = tests.py test_*.py


[flake8]
# Exclude notes:
# - utils/importer (legacy code)
# - help (auto-generated)
# - ui (auto-generated, in principle)
#   no control over, but should eventually be fixed (TODO)
exclude=pydev,conf.py,third_party,ui,help,utils/importer
# Ignore notes:
# - E402 (because of sys.path modifications)
# - W605 (weird regexes in utils.py, sqlalchemy_add_colums.py)
# - E501 line length: we use black now and if black can't cut down the length...
# - the rest are codes that were ignored on default, but became disabled
#   when custom codes were added, see:
#   http://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
ignore=E121,E123,E126,E133,E203,E226,E241,E242,E704,E501,W503,W504,E402,W605
max-line-length = 88


[isort]
atomic = true
force_alphabetical_sort = true
force_single_line = true
include_trailing_comma = true
line_length = 88
lines_after_imports = 2
multi_line_output = 3
not_skip = __init__.py
use_parentheses = true
