Skip to content

Fix pre-commit Python interpreter#353

Merged
Ludy87 merged 3 commits into
mainfrom
codex/fix-pre-commit-environment-initialization-error
Jun 9, 2026
Merged

Fix pre-commit Python interpreter#353
Ludy87 merged 3 commits into
mainfrom
codex/fix-pre-commit-environment-initialization-error

Conversation

@Ludy87

@Ludy87 Ludy87 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Pre-commit hooks were configured to use python3.9, which may not be available in all CI/workflow environments, causing virtualenv creation failures; using python3 lets hooks select the environment's available interpreter.

Description

  • Changed default_language_version in .pre-commit-config.yaml from python3.9 to python3 so pre-commit hooks will use the generic Python interpreter present in the runner.

Testing

  • Validated the updated file by parsing the YAML with ruby -e 'require "yaml"; YAML.load_file(".pre-commit-config.yaml")' and running git diff --check, both succeeded, while pre-commit run --all-files could not be executed because pre-commit installation from PyPI was blocked in this environment.

Codex Task

@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Ludy87 Ludy87 merged commit 9d5fabf into main Jun 9, 2026
8 of 12 checks passed
@Ludy87 Ludy87 deleted the codex/fix-pre-commit-environment-initialization-error branch June 9, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant