2022-10-29 23:19:09 +08:00
|
|
|
[tox]
|
|
|
|
envlist = py39,py310,py311,pre-commit
|
|
|
|
skip_missing_interpreters = true
|
2022-11-01 23:24:13 +08:00
|
|
|
tox_pip_extensions_ext_pip_custom_platform = true
|
|
|
|
tox_pip_extensions_ext_venv_update = true
|
|
|
|
|
2022-10-29 23:19:09 +08:00
|
|
|
[testenv]
|
2023-06-12 03:54:52 +08:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
2022-11-01 23:24:13 +08:00
|
|
|
passenv = HOME SSH_AUTH_SOCK USER
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
envdir = venv
|
2022-10-29 23:19:09 +08:00
|
|
|
commands =
|
|
|
|
|
2023-06-12 03:54:52 +08:00
|
|
|
[testenv:install-hooks]
|
|
|
|
deps = pre-commit
|
|
|
|
commands = pre-commit install -f --install-hooks
|
|
|
|
|
|
|
|
[testenv:pre-commit]
|
|
|
|
deps = pre-commit
|
|
|
|
commands = pre-commit run --all-files
|
|
|
|
|
|
|
|
[testenv:tests]
|
|
|
|
commands =
|
|
|
|
pre-commit install -f --install-hooks
|
|
|
|
pre-commit run --all-files
|
|
|
|
|
2022-11-01 23:24:13 +08:00
|
|
|
[flake8]
|
|
|
|
max-line-length = 130
|
|
|
|
|
|
|
|
[pep8]
|
|
|
|
extend-ignore = E722,E402
|
2024-02-11 00:15:41 +08:00
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
add_imports = ["from __future__ import annotations"]
|
|
|
|
force_single_line = true
|
|
|
|
profile = "black"
|