Skip to content

Conversation

@CodingWithSaksham
Copy link
Contributor

I have made things!

  • Updated .pre-commit-config.yaml to drop
default_language_version:
  python: python3.12

as it’s redundant. djangorestframework-stubs uses hooks that are already compatible with the latest stable Python versions.
Keeping this pinned was only causing issues for new contributors, since pre-commit install failed with a RuntimeError if Python 3.12 wasn’t available.

  • Updated CONTRIBUTING.md to drop the following line as it is redundant:

Important: right now we only run stubtest on Python 3.12 (because it is the latest released version at the moment), any other versions might generate different outputs. Any work to create per-version allowlists is welcome.


Related issues

Closes #818

@sobolevn sobolevn merged commit 48152ec into typeddjango:master Sep 8, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

.pre-commit-config.yaml and CONTRIBUTING.md still using Python 3.12

2 participants