Update pre-commit hooks

This commit is contained in:
Ayaz Salikhov
2024-11-05 19:47:43 +00:00
parent 2c525aff70
commit 62a85b43b6
2 changed files with 10 additions and 11 deletions

View File

@@ -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

View File

@@ -1,7 +1,6 @@
# Jupyter Docker Stacks # Jupyter Docker Stacks
[![GitHub actions badge](https://github.com/jupyter/docker-stacks/actions/workflows/docker.yml/badge.svg) [![GitHub actions badge](https://github.com/jupyter/docker-stacks/actions/workflows/docker.yml/badge.svg)](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")
[![Read the Docs badge](https://img.shields.io/readthedocs/jupyter-docker-stacks.svg)](https://jupyter-docker-stacks.readthedocs.io/en/latest/ "Documentation build status") [![Read the Docs badge](https://img.shields.io/readthedocs/jupyter-docker-stacks.svg)](https://jupyter-docker-stacks.readthedocs.io/en/latest/ "Documentation build status")
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/jupyter/docker-stacks/main.svg)](https://results.pre-commit.ci/latest/github/jupyter/docker-stacks/main "pre-commit.ci build status") [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/jupyter/docker-stacks/main.svg)](https://results.pre-commit.ci/latest/github/jupyter/docker-stacks/main "pre-commit.ci build status")
[![Discourse badge](https://img.shields.io/discourse/users.svg?color=%23f37626&server=https%3A%2F%2Fdiscourse.jupyter.org)](https://discourse.jupyter.org/ "Jupyter Discourse Forum") [![Discourse badge](https://img.shields.io/discourse/users.svg?color=%23f37626&server=https%3A%2F%2Fdiscourse.jupyter.org)](https://discourse.jupyter.org/ "Jupyter Discourse Forum")