mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
Update pre-commit hooks
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
repos:
|
repos:
|
||||||
# Autoupdate: Python code
|
# Autoupdate: Python code
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.17.0
|
rev: v3.19.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py39-plus]
|
args: [--py39-plus]
|
||||||
@@ -28,14 +28,14 @@ repos:
|
|||||||
|
|
||||||
# Autoformat: Python code
|
# Autoformat: Python code
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.8.0
|
rev: 24.10.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--target-version=py39]
|
args: [--target-version=py39]
|
||||||
|
|
||||||
# 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.11.2
|
rev: v1.13.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args: [--config, ./mypy.ini]
|
args: [--config, ./mypy.ini]
|
||||||
@@ -69,7 +69,7 @@ repos:
|
|||||||
|
|
||||||
# `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: v4.6.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
@@ -78,7 +78,7 @@ repos:
|
|||||||
|
|
||||||
# Lint: Dockerfile
|
# Lint: Dockerfile
|
||||||
- repo: https://github.com/hadolint/hadolint
|
- repo: https://github.com/hadolint/hadolint
|
||||||
rev: v2.13.0-beta
|
rev: 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
|
||||||
@@ -86,7 +86,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.0-beta
|
rev: v2.13.1-beta
|
||||||
hooks:
|
hooks:
|
||||||
- id: hadolint-docker
|
- id: hadolint-docker
|
||||||
name: Lint *.dockerfile Dockerfiles
|
name: Lint *.dockerfile Dockerfiles
|
||||||
@@ -124,14 +124,14 @@ repos:
|
|||||||
|
|
||||||
# Lint: Markdown
|
# Lint: Markdown
|
||||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
rev: v0.41.0
|
rev: v0.42.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: markdownlint
|
- id: markdownlint
|
||||||
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.7.1
|
rev: 0.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: nbstripout
|
- id: nbstripout
|
||||||
|
|
||||||
@@ -149,7 +149,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.18.0
|
rev: 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
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
# Jupyter Docker Stacks
|
# Jupyter Docker Stacks
|
||||||
|
|
||||||
[
|
[](https://github.com/jupyter/docker-stacks/actions/workflows/docker.yml?query=branch%3Amain "Docker images build status")
|
||||||
](https://github.com/jupyter/docker-stacks/actions/workflows/docker.yml?query=branch%3Amain "Docker images build status")
|
|
||||||
[](https://jupyter-docker-stacks.readthedocs.io/en/latest/ "Documentation build status")
|
[](https://jupyter-docker-stacks.readthedocs.io/en/latest/ "Documentation build status")
|
||||||
[](https://results.pre-commit.ci/latest/github/jupyter/docker-stacks/main "pre-commit.ci build status")
|
[](https://results.pre-commit.ci/latest/github/jupyter/docker-stacks/main "pre-commit.ci build status")
|
||||||
[](https://discourse.jupyter.org/ "Jupyter Discourse Forum")
|
[](https://discourse.jupyter.org/ "Jupyter Discourse Forum")
|
||||||
|
Reference in New Issue
Block a user