-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
66 lines (53 loc) · 1.14 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tox]
min_version = 4.0
env_list = py38, py39, py310, py311, py312,
mypy, flake8, bandit, black,
full_tests
isolated_build = true
[gh-actions]
;Notice that in gh-actions we don't run the full_tests via tox.
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
setenv = PYTHONPATH = {toxinidir}
deps = .[tests]
commands = pytest --regular
[testenv:mypy]
basepython = python3.12
commands = mypy
[testenv:bandit]
basepython = python3.12
commands = bandit -r -s B101 flipjump tests
[testenv:flake8]
basepython = python3.12
commands = flake8
[testenv:black]
basepython = python3.12
commands = black . --check --color --diff
[testenv:full_tests]
basepython = python3.12
commands =
pytest --compile -n auto --all
pytest --run -n auto --all
[flake8]
exclude =
.git,
__pycache__,
.tox,
tests/inout
tests/compiled
venv
max-line-length=120
per-file-ignores =
# imported but unused
flipjump/__init__.py: F401
# redefinition of unused / undefined name
flipjump/assembler/fj_parser.py: F811, F821
[bandit]
recursive = true
targets = flipjump,tests
skips = B101