-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
47 lines (38 loc) · 939 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 = stylechecks,tests-py{36,37,38,py}
skip_missing_interpreters = true
[testenv]
usedevelop = True
install_command=python -m pip install --ignore-installed {opts} {packages}
deps =
tox
tox-pip-version
pytest
pytest-pep8
pytest-xdist
setenv = PYTHONPATH=.:$PYTHONPATH
passenv = *
commands =
tests: py.test --durations=5 -v --pep8 --doctest-modules toxbat tests
[testenv:stylechecks]
deps =
pre-commit==2.4.0
mypy
commands =
pre-commit run --all-files
mypy toxbat tests
[testenv:release]
deps = twine
commands =
python setup.py sdist bdist_wheel
twine upload -r pypi dist/*
[pytest]
norecursedirs=.tox
looponfailroots = toxbat tests
pep8maxlinelength = 100
# W503 - line break before binary operator
# E203 whitespace before ':'
# E402 - module level import not at top of file
# E731 - do not assign a lambda expression, use a def
pep8ignore =
*.py W503 E203 E402 E731