-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
36 lines (32 loc) · 787 Bytes
/
tox.ini
File metadata and controls
36 lines (32 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
; See https://tox.wiki/en
[tox]
requires =
tox>=4
; run lint by default when just calling "tox"
env_list = lint
; ENVIRONMENTS
; ------------
[style]
description = common environment for style checkers (rely on pre-commit hooks)
skip_install = true
deps =
pre-commit
import-linter
; COMMANDS
; --------
[testenv:lint]
description = install pre-commit hooks and run all linters and formatters
skip_install = true
deps =
{[style]deps}
commands =
pre-commit install
pre-commit run --all-files --show-diff-on-failure {posargs:}
lint-imports --config pyproject.toml
[testenv:update_dependencies]
description = update requirements.txt
skip_install = true
deps =
pip-tools
commands =
pip-compile --strip-extras -o requirements.txt pyproject.toml{posargs:}