forked from Breakthrough-Energy/PreREISE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (29 loc) · 731 Bytes
/
tox.ini
File metadata and controls
33 lines (29 loc) · 731 Bytes
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
[tox]
envlist = pytest-local, format, flake8
skipsdist = true
[testenv]
deps =
pytest: pipenv
{format,checkformatting}: black
{format,checkformatting}: isort
flake8: flake8
flake8: pep8-naming
commands =
pytest: pipenv sync --dev
local: pytest -m 'not integration' {posargs}
integration: pytest {posargs}
format: black .
format: isort .
checkformatting: black . --check --diff
checkformatting: isort --check --diff .
flake8: flake8 prereise/
[flake8]
ignore = E501,W503,E203
exclude =
.ipynb_checkpoints
[isort]
profile = black
[pytest]
testpaths = prereise
markers =
integration: marks tests that require external dependencies (deselect with '-m "not integration"')