cjolowicz / cookiecutter-hypermodern-python

Hypermodern Python Cookiecutter
http://cookiecutter-hypermodern-python.readthedocs.io/
MIT License
1.79k stars 232 forks source link

Session safety failed. #1382

Open man-chi opened 4 months ago

man-chi commented 4 months ago

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