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