-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
60 lines (49 loc) · 1.18 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist =
py3
pypy3
[testenv]
deps =
py3,pypy3: pytest >= 5.4.3
pytest-cov
tox
scipy
numpy
pygsl
filelock
coverage: coverage
linters: black==19.10b0
linters: flake8
linters: flake8-import-order
linters: flake8-bugbear
linters: mypy
linters: pep8-naming
setenv =
PYTHONDONTWRITEBYTECODE=1
TESTPATH=unit_tests
COVERAGE_FILE=.coverage-{envname}
usedevelop = True
extras =
basepython =
py3: python3
linters: python3
coverage: python3
pypy3: pypy3
commands =
py.test {env:TESTPATH} {posargs}
[testenv:coverage]
commands =
py.test --cov=goratings --cov-config=coverage.ini {env:TESTPATH} {posargs}
[testenv:linters]
commands =
mypy --config mypy.ini goratings analysis/util
flake8 unit_tests goratings analysis/util
black --line-length 120 --diff --check unit_tests goratings analysis/util
[flake8]
# N806 variables in functions should be lowercase. We ignore this so our
# glicko implementations can use the same case as the original papers
# W503 line break before binary operators, black disagrees, and black is
# always right
ignore = N806 W503
# match black
max-line-length = 120