-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathtox.ini
34 lines (30 loc) · 878 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
[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 powersimdata/
[flake8]
ignore = E501,W503,E741,E203,W605
[isort]
profile = black
[pytest]
addopts = --ignore-glob=**/sql/*
markers =
integration: marks tests that require external dependencies (deselect with '-m "not integration"')
db: marks tests that connect to a local database
ssh: marks tests that connect to the server over ssh
wip: marks tests undergoing development