-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
45 lines (39 loc) · 1.02 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
# The test environment and commands
[tox]
envlist = check, test
skipsdist = True
[testenv:check]
description = Runs all formatting tools then static analysis (quick)
deps =
--no-deps
-r requirements-dev.txt
commands =
shed # combines autoflake, black, isort, and pyupgrade
flake8
[testenv:test]
description = Run the tests
deps =
--no-deps
-r requirements.txt
commands =
python -m unittest discover tests --catch {posargs: -v}
[testenv:deps]
description = Update pinned requirements
deps =
pip-tools
setenv =
CUSTOM_COMPILE_COMMAND = tox -e deps
commands =
pip-compile --quiet --upgrade --rebuild --output-file=requirements.txt requirements.in
pip-compile --quiet --upgrade --rebuild --output-file=requirements-dev.txt requirements-dev.in
# Settings for other tools
[flake8]
ignore = E501,W503,S101,S310,N802,S301,S403
exclude = .*/,__pycache__
[isort]
default_section = THIRDPARTY
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
combine_as_imports = True
line_length = 88