Skip to content

Commit 2614180

Browse files
add nox target
1 parent 818dc22 commit 2614180

File tree

4 files changed

+385
-46
lines changed

4 files changed

+385
-46
lines changed

exasol/toolbox/nox/_lint.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ def report_illegal(illegal: dict[str, list[str]], console: rich.console.Console)
130130
console.print("")
131131

132132

133+
def _audit(session: Session) -> None:
134+
session.run("poetry", "run", "pip-audit")
135+
136+
133137
@nox.session(name="lint:code", python=False)
134138
def lint(session: Session) -> None:
135139
"Runs the static code analyzer on the project"
@@ -191,3 +195,9 @@ def import_lint(session: Session) -> None:
191195
"Please make sure you have a configuration file for the importlinter"
192196
)
193197
_import_lint(session=session, path=path)
198+
199+
200+
@nox.session(name="project:audit", python=False)
201+
def audit(session: Session) -> None:
202+
"""audit the project"""
203+
_audit(session)

exasol/toolbox/nox/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def check(session: Session) -> None:
5353
_type_check,
5454
lint,
5555
type_check,
56+
audit
5657
)
5758
from exasol.toolbox.nox._documentation import (
5859
build_docs,

0 commit comments

Comments
 (0)