-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
60 lines (54 loc) · 1.08 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
[tox]
min_version = 4.0
env_list =
lint
style
ruff
pytest
[testenv:lint]
description = run Pylint
allowlist_externals =
poetry
find
deps =
poetry
pylint>=3.0.0
fastapi>=0.115.8
pytest
pytest-asyncio
flexmock
commands_pre =
poetry install --extras server
commands =
pylint {posargs:./logdetective ./scripts/bumpver.py}
pylint --rcfile=.pylintrc.tests ./tests ./alembic/versions/*.py
[testenv:style]
description = run Flake8
allowlist_externals =
find
deps =
flake8>=7.0.0
commands =
flake8 {posargs:./logdetective ./alembic/versions ./tests ./scripts/bumpver.py}
[testenv:ruff]
description = run ruff
deps =
ruff>=0.9.0
commands =
ruff check {posargs:./logdetective ./alembic/versions ./tests ./scripts/bumpver.py}
[testenv:pytest]
description = run pytest
allowlist_externals =
poetry
deps =
poetry
pytest
pytest-asyncio
flexmock
commands = pytest {posargs}
commands_pre =
poetry install --extras server
[flake8]
ignore =
# disable max line length, that is already checked by pylint
E501