Freeze pre-commit hooks (#2289)

This commit is contained in:
Ayaz Salikhov
2025-04-25 00:04:10 +01:00
committed by GitHub
parent 7e7dfd53f9
commit 766a7e2ff6

View File

@@ -14,28 +14,28 @@
repos: repos:
# Autoupdate: Python code # Autoupdate: Python code
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.19.1 rev: ce40a160603ab0e7d9c627ae33d7ef3906e2d2b2 # frozen: v3.19.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py312-plus] args: [--py312-plus]
# Automatically sort python imports # Automatically sort python imports
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 6.0.1 rev: c8ab4a5b21bac924d106e3103dd7c979fdd0f9bc # frozen: 6.0.1
hooks: hooks:
- id: isort - id: isort
args: [--profile, black] args: [--profile, black]
# Autoformat: Python code # Autoformat: Python code
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 25.1.0 rev: 8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b # frozen: 25.1.0
hooks: hooks:
- id: black - id: black
args: [--target-version=py312] args: [--target-version=py312]
# Check python code static typing # Check python code static typing
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0 rev: f40886d54c729f533f864ed6ce584e920feb0af7 # frozen: v1.15.0
hooks: hooks:
- id: mypy - id: mypy
args: [--config, ./mypy.ini] args: [--config, ./mypy.ini]
@@ -64,13 +64,13 @@ repos:
# Autoformat: YAML, JSON, Markdown, etc. # Autoformat: YAML, JSON, Markdown, etc.
- repo: https://github.com/rbubley/mirrors-prettier - repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3 rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
hooks: hooks:
- id: prettier - id: prettier
# `pre-commit sample-config` default hooks # `pre-commit sample-config` default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
@@ -81,7 +81,7 @@ repos:
# Lint: Dockerfile # Lint: Dockerfile
- repo: https://github.com/hadolint/hadolint - repo: https://github.com/hadolint/hadolint
rev: v2.13.1-beta rev: c3dc18df7a501f02a560a2cc7ba3c69a85ca01d3 # frozen: v2.13.1-beta
hooks: hooks:
- id: hadolint-docker - id: hadolint-docker
entry: hadolint/hadolint:v2.12.1-beta hadolint entry: hadolint/hadolint:v2.12.1-beta hadolint
@@ -89,7 +89,7 @@ repos:
# Lint: Dockerfile # Lint: Dockerfile
# We're linting .dockerfile files as well # We're linting .dockerfile files as well
- repo: https://github.com/hadolint/hadolint - repo: https://github.com/hadolint/hadolint
rev: v2.13.1-beta rev: c3dc18df7a501f02a560a2cc7ba3c69a85ca01d3 # frozen: v2.13.1-beta
hooks: hooks:
- id: hadolint-docker - id: hadolint-docker
name: Lint *.dockerfile Dockerfiles name: Lint *.dockerfile Dockerfiles
@@ -99,48 +99,48 @@ repos:
# Lint: YAML # Lint: YAML
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.37.0 rev: be92e15345b32661abee2e675d765ae79686eb4c # frozen: v1.37.0
hooks: hooks:
- id: yamllint - id: yamllint
args: ["-d {extends: relaxed, rules: {line-length: disable}}", "-s"] args: ["-d {extends: relaxed, rules: {line-length: disable}}", "-s"]
# Lint: Bash scripts # Lint: Bash scripts
- repo: https://github.com/openstack/bashate - repo: https://github.com/openstack/bashate
rev: 2.1.1 rev: 5798d24d571676fc407e81df574c1ef57b520f23 # frozen: 2.1.1
hooks: hooks:
- id: bashate - id: bashate
args: ["--ignore=E006"] args: ["--ignore=E006"]
# Lint: Shell scripts # Lint: Shell scripts
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1 rev: a23f6b85d0fdd5bb9d564e2579e678033debbdff # frozen: v0.10.0.1
hooks: hooks:
- id: shellcheck - id: shellcheck
args: ["-x"] args: ["-x"]
# Lint: Python # Lint: Python
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 7.2.0 rev: 4b5e89b4b108a6c1a000c591d334a99a80d34c7b # frozen: 7.2.0
hooks: hooks:
- id: flake8 - id: flake8
# Lint: Markdown # Lint: Markdown
- repo: https://github.com/DavidAnson/markdownlint-cli2 - repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.2 rev: d174eb7a8f35e05d4065c82d375ad84aa0b32352 # frozen: v0.17.2
hooks: hooks:
- id: markdownlint-cli2 - id: markdownlint-cli2
args: [--fix] args: [--fix]
# Strip output from Jupyter notebooks # Strip output from Jupyter notebooks
- repo: https://github.com/kynan/nbstripout - repo: https://github.com/kynan/nbstripout
rev: 0.8.1 rev: 7324e7aabccc1d1a9984dbe4dedbde8bd022a504 # frozen: 0.8.1
hooks: hooks:
- id: nbstripout - id: nbstripout
# nbQA provides tools from the Python ecosystem like # nbQA provides tools from the Python ecosystem like
# pyupgrade, isort, black, and flake8, adjusted for notebooks. # pyupgrade, isort, black, and flake8, adjusted for notebooks.
- repo: https://github.com/nbQA-dev/nbQA - repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1 rev: f96ec7f3b26a32619435686eb5813235f7e3327e # frozen: 1.9.1
hooks: hooks:
- id: nbqa-pyupgrade - id: nbqa-pyupgrade
args: [--py312-plus] args: [--py312-plus]
@@ -151,7 +151,7 @@ repos:
# Run black on python code blocks in documentation files. # Run black on python code blocks in documentation files.
- repo: https://github.com/adamchainz/blacken-docs - repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1 rev: 78a9dcbecf4f755f65d1f3dec556bc249d723600 # frozen: 1.19.1
hooks: hooks:
- id: blacken-docs - id: blacken-docs
# --skip-errors is added to allow us to have python syntax highlighting even if # --skip-errors is added to allow us to have python syntax highlighting even if