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/**",
|
|
|
|
|
]
|
2023-07-07 18:28:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# tbump is used to simplify and standardize the release process when updating
|
|
|
|
|
# the version, making a git commit and tag, and pushing changes.
|
|
|
|
|
#
|
|
|
|
|
# ref: https://github.com/your-tools/tbump#readme
|
|
|
|
|
#
|
|
|
|
|
[tool.tbump]
|
|
|
|
|
github_url = "https://github.com/jupyterhub/the-littlest-jupyterhub"
|
|
|
|
|
|
|
|
|
|
[tool.tbump.version]
|
2024-09-20 22:03:06 +02:00
|
|
|
current = "2.0.0.dev"
|
2023-07-07 18:28:55 +02:00
|
|
|
regex = '''
|
|
|
|
|
(?P<major>\d+)
|
|
|
|
|
\.
|
|
|
|
|
(?P<minor>\d+)
|
|
|
|
|
\.
|
|
|
|
|
(?P<patch>\d+)
|
|
|
|
|
(?P<pre>((a|b|rc)\d+)|)
|
|
|
|
|
\.?
|
|
|
|
|
(?P<dev>(?<=\.)dev\d*|)
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
[tool.tbump.git]
|
|
|
|
|
message_template = "Bump to {new_version}"
|
|
|
|
|
tag_template = "{new_version}"
|
|
|
|
|
|
|
|
|
|
[[tool.tbump.file]]
|
|
|
|
|
src = "setup.py"
|