Skip to content

Commit

Permalink
chore: 🤖 add safety check (vulnerabilities in dependencies)
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Aug 30, 2021
1 parent 7147215 commit 5795ec5
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ jobs:
run: poetry run black --check tests src benchmark
- name: Run isort
run: poetry run isort --check-only tests src benchmark
- name: Run safety
run: poetry run safety check
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ run:
test:
poetry run python -m pytest -x tests

# Check that source code meets quality standards
# Check that source code meets quality standards + security
quality:
poetry run black --check tests src benchmark
poetry run isort --check-only tests src benchmark
poetry run safety check

# Format source code automatically
style:
Expand Down
44 changes: 41 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ nltk = "^3.6.2"
aiohttp = "^3.7.4"
datasets = {extras = ["streaming"], git = "https://github.com/huggingface/datasets.git", rev = "b9fb8b2567aecfb14ad0bc31b59329f573eb35df"}
typer = "^0.3.2"
safety = "^1.10.3"

[tool.poetry.dev-dependencies]
pytest = "^6.2.4"
Expand Down

0 comments on commit 5795ec5

Please sign in to comment.