-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (43 loc) · 942 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
39
40
41
42
43
44
45
46
47
[tox]
envlist =
py{39,310,311}-unit-tests,
black,
flake8
skip_missing_interpreters = True
[testenv]
sitepackages = True
deps =
tests: docker
tests: dockerpty
tests: GitPython
tests: Jinja2
tests: packaging
tests: PyYAML
tests: requests
tests: responses
tests: tabulate
commands =
unit-tests: {envpython} tests/unit_tests.py
[testenv:black]
deps =
black
commands =
{envpython} -m black --check --diff kaboxer/ tests/ setup.py
[testenv:flake8]
deps =
flake8
flake8-builtins
flake8-import-order
flake8-logging-format
# flake8-docstrings
# flake8-rst-docstrings
commands =
{envpython} -m flake8 kaboxer/ tests/ setup.py
[flake8]
# flake8-import-order: needs to know the module name
application-import-names = kaboxer
# flake8-logging-format: enable checks
enable-extensions = G
# Make flake8 compatible with Black
extend-ignore = E203, W503
max-line-length = 88