-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
50 lines (43 loc) · 768 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
49
50
[tox]
isolated_build = true
envlist = py37, py38, py39, py310, flake8
[gh-actions]
python =
3.7: py37
3.8: py38, flake8
3.9: py39, flake8
3.10: py310, flake8
[testenv]
whitelist_externals = poetry
skip_install = true
commands =
poetry install -v
poetry run pytest tests/
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-builtins
flake8-bugbear
commands =
flake8 fox/
[flake8]
exclude = .tox/*, .git/*, build/*
select =
E,F,W,C90,B,B902,C
max-line-length = 100
[testenv:mypy]
skip_install = true
deps =
mypy
commands = mypy fox/
[testenv:pylint]
skip_install = true
deps =
pylint
commands =
pylint fox/
[testenv:black]
skip_install = true
deps = black
commands = black -l 100 fox/ tests/ setup.py