cookiecutter-hypermodern-python icon indicating copy to clipboard operation
cookiecutter-hypermodern-python copied to clipboard

Session safety failed.

Open man-chi opened this issue 10 months ago • 0 comments

I have followed every line of instruction on quickstart .my pyenv use is also 3.10.2 as stated in quickstart but I have encountered Session safety failed when I do execute nox for full test. the full test will only passed, if I skip the safety session in noxfile.py . please help

I do not make any changes in noxfile.py all files are the exact same as template started from cookie-cutter.

noxfile.py @session(python=python_versions[0]) def safety(session: Session) -> None: """Scan dependencies for insecure packages.""" requirements = session.poetry.export_requirements() session.install("safety") session.run("safety", "check", "--full-report", f"--file={requirements}")

step to reproduce:

  1. $cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python --checkout=2022.6.3
  2. $nox nox > Command safety check --full-report --file=.nox/safety/tmp/requirements.txt failed with exit code 255 nox > Session safety failed. Screen Shot 2024-04-20 at 6 10 49 PM

man-chi avatar Apr 20 '24 10:04 man-chi