2023-05-15 10:43:59 +02:00
|
|
|
# autoflake is used for autoformatting Python code
|
|
|
|
|
#
|
|
|
|
|
# ref: https://github.com/PyCQA/autoflake#readme
|
|
|
|
|
#
|
|
|
|
|
[tool.autoflake]
|
|
|
|
|
ignore-init-module-imports = true
|
|
|
|
|
remove-all-unused-imports = true
|
|
|
|
|
remove-duplicate-keys = true
|
|
|
|
|
remove-unused-variables = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# isort is used for autoformatting Python code
|
|
|
|
|
#
|
|
|
|
|
# ref: https://pycqa.github.io/isort/
|
|
|
|
|
#
|
|
|
|
|
[tool.isort]
|
|
|
|
|
profile = "black"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# black is used for autoformatting Python code
|
|
|
|
|
#
|
|
|
|
|
# ref: https://black.readthedocs.io/en/stable/
|
|
|
|
|
#
|
|
|
|
|
[tool.black]
|
|
|
|
|
# target-version should be all supported versions, see
|
|
|
|
|
# https://github.com/psf/black/issues/751#issuecomment-473066811
|
|
|
|
|
target_version = [
|
|
|
|
|
"py36",
|
|
|
|
|
"py37",
|
|
|
|
|
"py38",
|
|
|
|
|
"py39",
|
|
|
|
|
"py310",
|
|
|
|
|
"py311",
|
|
|
|
|
]
|
2023-06-06 14:07:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# pytest is used for running Python based tests
|
|
|
|
|
#
|
|
|
|
|
# ref: https://docs.pytest.org/en/stable/
|
|
|
|
|
#
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
addopts = "--verbose --color=yes --durations=10 --maxfail=1 --cov=tljh"
|
|
|
|
|
asyncio_mode = "auto"
|
2023-06-09 00:42:07 +02:00
|
|
|
filterwarnings = [
|
|
|
|
|
'ignore:.*Module bootstrap was never imported.*:coverage.exceptions.CoverageWarning',
|
|
|
|
|
]
|
2023-06-06 14:07:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# pytest-cov / coverage is used to measure code coverage of tests
|
|
|
|
|
#
|
|
|
|
|
# ref: https://coverage.readthedocs.io/en/stable/config.html
|
|
|
|
|
#
|
|
|
|
|
[tool.coverage.run]
|
|
|
|
|
parallel = true
|
|
|
|
|
omit = [
|
|
|
|
|
"tests/**",
|
|
|
|
|
"integration-tests/**",
|
|
|
|
|
]
|