forked from center-for-threat-informed-defense/tram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (33 loc) · 803 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
[tox]
envlist = tram
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements/requirements.txt
-r{toxinidir}/requirements/test-requirements.txt
passenv = GITHUB_*
[testenv:tram]
description = Run Checks
commands =
python -c "import nltk; nltk.download('punkt')"
python -c "import nltk; nltk.download('wordnet')"
python -c "import nltk; nltk.download('omw-1.4')"
pytest --cov=tram --cov-report=xml
bandit -r src/ -ll -ii
flake8 src/ tests/
safety check --file requirements/requirements.txt
[flake8]
max-line-length = 120
indent-size = 4
max-complexity = 20
extend-ignore = E203
exclude =
src/archive
src/tram/migrations
[pytest]
DJANGO_SETTINGS_MODULE = tram.settings
testpaths =
tests
[gh-actions]
python =
3.9: tram, bandit, flake8, safety