Skip to content

Align pre-commit Python with .python-version#400

Draft
Mirochill wants to merge 1 commit into
opensafely-core:mainfrom
Mirochill:fix-397-pre-commit-python-version
Draft

Align pre-commit Python with .python-version#400
Mirochill wants to merge 1 commit into
opensafely-core:mainfrom
Mirochill:fix-397-pre-commit-python-version

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

Fixes #397.
Refs #396.

  • Align .pre-commit-config.yaml with the project .python-version by changing the default pre-commit Python from python3.10 to python3.8.
  • This matches the repository's current Python 3.8 development/version target in .python-version and pyproject.toml.

Validation

  • git diff --check
  • rg -n 'python3\.8|python3\.10|requires-python|target-version|Programming Language :: Python :: 3\.8' .pre-commit-config.yaml .python-version pyproject.toml
  • Not run locally: pre-commit, tests, build, or install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-commit uses a different Python version to that used for development

1 participant