forked from CAVaccineInventory/vaccine-feed-ingest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (33 loc) · 809 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
[tox]
skipsdist = True
isolated_build = True
skip_install = True
envlist =
lint
test
[tox:.package]
basepython = python3
[testenv]
whitelist_externals = poetry
install_command = poetry install --quiet --extras {packages} --no-root --no-interaction
[testenv:lint]
deps =
lint
commands =
poetry run flake8 vaccine_feed_ingest tests
poetry run isort vaccine_feed_ingest tests --check-only
poetry run black vaccine_feed_ingest tests --diff --check
poetry run mypy vaccine_feed_ingest tests
[testenv:lint-fix]
deps =
lint
commands =
poetry run isort vaccine_feed_ingest tests
poetry run black vaccine_feed_ingest tests
poetry run mypy vaccine_feed_ingest tests
poetry run flake8 vaccine_feed_ingest tests
[testenv:test]
deps =
test
commands=
poetry run pytest tests {posargs}