-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
48 lines (41 loc) · 1.2 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
[tox]
envlist = py36, py39, flake8, isort, safety
skipsdist = true
skip_missing_interpreters = true
[testenv]
deps =
-rtests/requirements.txt
commands = pytest --noconftest tests/functional
[testenv:flake8]
commands = flake8
skip_install = true
deps =
flake8==3.8.0
flake8-docstrings==1.5.0
[testenv:isort]
commands = isort . --check --diff
skip_install = true
deps =
isort==5.8.0
[testenv:pin-dependencies]
commands =
pip-compile --generate-hashes --output-file=requirements.txt
pip-compile --generate-hashes --output-file=scraper-requirements.txt setup.py scraper-requirements.in
pip-compile --generate-hashes --output-file=docs-requirements.txt docs-requirements.in scraper-requirements.in setup.py
pip-compile --generate-hashes --output-file=tests/requirements.txt setup.py tests/requirements.in
skip_install = true
deps =
pip-tools
[testenv:infra]
commands = pytest --noconftest tests/infra
[testenv:safety]
description = dependency vulnerability checks [Mandatory]
skip_install = true
deps =
safety
commands =
safety check -r requirements.txt -r docs-requirements.txt -r scraper-requirements.txt
[flake8]
ignore = D100,D104,W503
max-line-length = 100
exclude = .git .tox