opensafely-core / interactive-templates

Code to generate the reports generated by OpenSAFELY Interactive
Other
0 stars 0 forks source link

Add `.python-version` #382

Closed StevenMaude closed 3 months ago

StevenMaude commented 3 months ago

Dependabot is currently, I think, trying to open PRs using Python 3.12 instead of Python 3.11 that this repository uses.

Specifying .python-version fixes this.

See opensafely-core/job-server@f2059f8d8d5e14526a1468ad736687ce2537e2dc for more of the reasoning.

iaindillingham commented 3 months ago

It may fix some of Dependabot's behaviour, but not all. See #379 for more information 🙁

StevenMaude commented 3 months ago

Thanks for flagging it; yes, this was my mistake at forgetting that the hypothesis requirements are actually built with Python 3.8 and run with the OpenSAFELY python:latest image (which is in fact python:v1 and not python:v2).