-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (35 loc) · 1.17 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
[tox]
skipsdist=True
envlist =
flake8,py39
# настройка flake8
[flake8]
# максимальная длина строки
max-line-length = 120
# исключения
exclude = tests, .tox, venv
# игнорируем следующие правила
ignore = D100, D104, D105, D106, W503, E203, E231, D401
per-file-ignores =
test_*.py: D101,D102,N802
[testenv]
commands =
mypy . --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --check-untyped-defs --disallow-untyped-decorators --ignore-missing-imports --pretty
vulture main.py
black --check -v main.py
coverage erase
coverage run --source=. -m unittest discover -s tests/
coverage report -m --skip-covered --omit .tox/*,test* --fail-under=20
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-r requirements_dev.txt
# виртуальная среда тестирования flake8
[testenv:flake8]
commands =
flake8 ./
flake8 --docstring-convention=pep257 .
# программные модули для проведения тестов
deps =
-r requirements_dev.txt