-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (31 loc) · 782 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
[tox]
isolated_build = True
envlist = spellcheck,format,test
skipsdist = True
[coverage:run]
branch = True
source = app
omit = app/logs/*
app/utils/config/*
[coverage:report]
fail_under = 75.0
[testenv]
setenv = PYTHONPATH = {toxinidir}
commands =
pip install -i setuptools>=65.5.0
[testenv:spellcheck]
deps = codespell==2.2.6
commands =
codespell --skip=".tox,*.pyc,TODO,.venv,env,.gitignore"
[testenv:lint]
deps = black==23.9.1
commands =
black --check --diff --line-length 100 .
[testenv:format]
description = Run 'tox -e format' to format manually your code
deps = {[testenv:lint]deps}
commands = black --line-length 100 .
[testenv:test]
deps = -rrequirements.txt
-rtest-requirements.txt
commands = pytest -vv --disable-warnings -s --cache-clear