-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (60 loc) · 1.22 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
61
62
63
64
65
[tox]
minversion = 3.8.0
envlist = python3.8, python3.9, flake8, mypy
isolated_build = true
[gh-actions]
python =
3.8: python3.8, flake8, mypy
3.9: python3.9
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/requirements.txt
commands =
pytest --basetemp={envtmpdir}
[testenv:mypy]
skip_install = true
deps =
mypy
numpy
types-PyYAML
commands = mypy src/pydab
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-bandit
flake8-builtins
flake8-bugbear
flake8-colors
flake8-commas
flake8-comprehensions
flake8-docstrings
flake8-import-order
flake8-use-fstring
pep8-naming
pydocstyle
commands =
flake8 src/pydab/
description = Run the flake8 tool with several plugins (bandit, docstrings, import order, pep8 naming).
[flake8]
max-line-length = 88
extend-ignore = E203
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs
import-order-style = pycharm
application-import-names =
pybel
bel_resources
tests
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s