add pre-commit hook to enforce Python version 3.11-3.13 (#2636)
This commit is contained in:
committed by
GitHub
parent
fdf61aa2f9
commit
9fd8680c83
@@ -13,6 +13,14 @@ repos:
|
|||||||
- id: check-symlinks
|
- id: check-symlinks
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: check-python-version
|
||||||
|
name: Check Python Version (3.11-3.13)
|
||||||
|
entry: python -c "import sys; assert (3,11) <= sys.version_info[:2] <= (3,13), f'Python {sys.version_info[:2]} not supported. Use Python 3.11-3.13'"
|
||||||
|
language: system
|
||||||
|
pass_filenames: false
|
||||||
|
always_run: true
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.11.13
|
rev: v0.11.13
|
||||||
|
|||||||
Reference in New Issue
Block a user