Skip to content

Commit

Permalink
Try again to fix the safety check in tox
Browse files Browse the repository at this point in the history
Commenting out doesn't actually stop tox from creating that environment.
Seems far easier just to run all the checks in a single venv, so that
what's I've done in this commit.
  • Loading branch information
mehaase committed Aug 28, 2023
1 parent a3f63db commit 8433ac5
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = tram, bandit, flake8, safety
envlist = tram
skipsdist = True

[testenv]
Expand All @@ -10,28 +10,15 @@ deps =
passenv = GITHUB_*

[testenv:tram]
description = Run Pytest
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

[testenv:bandit]
description = Bandit Security Checks
commands =
bandit -r src/ -ll -ii

[testenv:flake8]
description = Flake8 Code Style Checks
commands =
flake8 src/ tests/

; The GitHub runner doesn't have enough disk space to run this check.
; [testenv:safety]
; description = Safety Vulnerability Checks
; commands =
; safety check --file requirements/requirements.txt
safety check --file requirements/requirements.txt

[flake8]
max-line-length = 120
Expand Down

0 comments on commit 8433ac5

Please sign in to comment.