-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
52 lines (44 loc) · 858 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
51
52
[flake8]
max-line-length = 80
select = C,E,F,W,B,B950
extend-ignore = E203, E501, E704
[tox]
envlist =
py31{1,2}
type
lint
[gh]
python =
3.12 = py312
3.11 = py311, type, lint
[testenv]
description = run api tests
deps =
fastapi
httpx
pytest
passlib
commands = pytest
[testenv:type]
base_python = py311
description = run type checking
deps =
mypy
commands = mypy tests/ src/ {posargs}
[testenv:black]
decription = Use black to format the code
skip_install = true
deps =
black
commands = black src/ tests/
[testenv:lint]
decription = Lint with flake8
skip_install = true
deps =
flake8
flake8-bugbear
commands = flake8 src/ tests/
[testenv:debug]
description = check if the package runs after any configuration changes, not for debugging dev changes
commands = uvicorn pwncore:app
# TODO: Add linting