Skip to content

Commit

Permalink
ci(noxfile): updated safety session to take in account "audit" group …
Browse files Browse the repository at this point in the history
…in pyproject.toml
  • Loading branch information
lewoudar committed Nov 27, 2023
1 parent a1465e4 commit ac0e1fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 31 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def lint(session):
@nox.session(python=PYTHON_VERSIONS[-1])
def safety(session):
"""Checks vulnerabilities of the installed packages."""
session.run('poetry', 'install', '--only', 'security')
session.run('poetry', 'install', '--only', 'audit')
session.run('safety', 'check')


Expand Down
41 changes: 12 additions & 29 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ruff = "^0.1.6"
mkdocs = "^1.4.0"
mkdocs-material = "^9.0.0"

[tool.poetry.group.security.dependencies]
[tool.poetry.group.audit.dependencies]
safety = "^2.3.0"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit ac0e1fa

Please sign in to comment.