Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check python version that was used to install pre-commit venvs (#43282) #43310

Merged
merged 1 commit into from
Oct 23, 2024

Commits on Oct 23, 2024

  1. Check python version that was used to install pre-commit venvs (apach…

    …e#43282)
    
    Since we moved to Python 3.9 and started usign 3.9+ only features
    line functools.cache, having Python 3.8 as default python version
    will result in virtualenvs created with outdated python.
    
    This pre-commit checks what is the global version of python3 and it
    will complain if it is lower than 3.9. This is done via explicit
    call of "python3", because this is what pre-commit does. Also
    global setting is needed because otherwise new virtualenvs
    created by pre-commit might be created using lower python version.
    
    (cherry picked from commit 076da92)
    potiuk committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    1514219 View commit details
    Browse the repository at this point in the history