-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (41 loc) · 796 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]
envlist = flake8,check-manifest,black,yamllint
[testenv]
extras = dev
commands =
{envpython} -m pytest {posargs:tests}
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8 >= 4.0.1
commands = flake8
[testenv:check-manifest]
skip_install = true
deps =
check-manifest
commands =
{envpython} -m check_manifest {toxinidir}
[testenv:black]
basepython = python3
skip_install = true
deps =
black >= 21.11b1
commands = black --check .
[testenv:black-run]
basepython = python3
skip_install = true
deps =
black >= 21.11b1
commands = black .
[flake8]
basepython = python3
format = pylint
ignore = W503, E203, E731, E231
max-line-length = 100
exclude = test/data/*,.tox/*
[testenv:yamllint]
skip_install = true
deps = yamllint
commands =
yamllint .gitlab-ci.yml