forked from JustEmuTarkov/jet_py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
68 lines (54 loc) · 1.16 KB
/
tox.ini
File metadata and controls
68 lines (54 loc) · 1.16 KB
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
67
68
[testenv-config]
target-dirs = ./server ./tarkov ./mods main.py
[tox]
skipsdist = True
[testenv]
allowlist_externals =
pytest
pylint
mypy
flake8
black
[testenv:pytest]
commands = pytest tests
[pytest]
filterwarnings =
ignore:"@coroutine" decorator is deprecated since Python 3.8, use "async def" instead:DeprecationWarning
[testenv:flake8]
commands = flake8 {[testenv-config]target-dirs}
[flake8]
ignore = F401,F405,W503,E203
max-line-length = 120
exclude =
.git
resources
build
dist
.tox
jobs = 4
max-complexity = 10
[testenv:pylint]
commands = pylint --rcfile=./pylintrc {[testenv-config]target-dirs}
[testenv:mypy]
deps =
mypy
pydantic
types-ujson
types-orjson
types-PyYAML
commands = mypy {[testenv-config]target-dirs} --config-file=tox.ini
[mypy]
exclude = tests
plugins = pydantic.mypy
warn_redundant_casts = True
warn_unreachable = True
warn_unused_ignores = True
strict_equality = True
disallow_untyped_calls = True
disallow_untyped_defs = True
ignore_missing_imports = True
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True