-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
35 lines (31 loc) · 617 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
[tox]
envlist = py38, static
[testenv]
deps =
pytest
commands = pytest {posargs}
[testenv:static]
deps =
mypy
isort
black
flake8
commands =
mypy --install-types --non-interactive osc_trino_acl_dsl
isort --check .
black --check .
flake8 osc_trino_acl_dsl
[testenv:cov]
usedevelop = True
deps =
pytest-cov
commands = pytest --cov-report=html {posargs}
[flake8]
count = True
max-line-length = 120
max-complexity = 10
# Allow __init__ files to have unused imports.
per-file-ignores = __init__.py:F401
extend-ignore =
# Allow spacing before colon (to favor Black).
E203