-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
42 lines (37 loc) · 762 Bytes
/
tox.ini
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
37
38
39
40
41
42
[tox]
envlist = py311,py310
work_dir = {env:WORK_DIR:.}/.tox
package_root = {env:WORK_DIR:.}
; [flake8]
; max-line-length = 88
; extend-ignore = E203, W503
; exclude = .git,__pycache__,.venv,.tox
; max-complexity = 10
; [testenv]
; deps = -r requirements/requirements-test.txt
; commands =
; pytest {posargs}
[testenv]
deps =
-r {env:WORK_DIR:.}/requirements.txt
pytest
change_dir = {env:WORK_DIR:.}
commands =
pytest {posargs}
[testenv:lint]
skip_install = true
deps =
ruff
ssort
commands =
ssort --check {env:WORK_DIR:.}
ruff check {env:WORK_DIR:.}
[testenv:format]
skip_install = true
deps =
ruff
ssort
commands =
-ssort {env:WORK_DIR:.}
-ruff check --fix {env:WORK_DIR:.}
-ruff format {env:WORK_DIR:.}