forked from theresnotime/as-a-treat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (41 loc) · 716 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
43
44
45
46
47
48
[tox]
skipsdist = True
envlist = flake8, black, isort, test
[testenv:fix]
commands =
black .
isort --profile black .
deps =
black==23.3.0
isort==5.12.0
[testenv:flake8]
# Example usage:
#
# tox -e flake8 -- --statistics
#
commands = flake8 {posargs}
deps = flake8==6.0.0
[testenv:black]
commands = black --check --diff .
deps = black==23.3.0
[testenv:isort]
commands = isort --profile black --check --diff .
deps =
isort==5.12.0
black==23.3.0
[testenv:test]
commands = pytest
deps = pytest
[flake8]
exclude =
venv,
.venv,
.tox,
__pycache__,
config.py
max-line-length = 286
ignore = W503, E722, E231
[isort]
profile = black
multi_line_output = 3
no_sections = true