# 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", ] # 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" filterwarnings = [ 'ignore:.*Module bootstrap was never imported.*:coverage.exceptions.CoverageWarning', ] # 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/**", ] # 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] current = "1.0.0b1" regex = ''' (?P\d+) \. (?P\d+) \. (?P\d+) (?P
((a|b|rc)\d+)|)
    \.?
    (?P(?<=\.)dev\d*|)
'''

[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "{new_version}"

[[tool.tbump.file]]
src = "setup.py"