Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
Expand All @@ -19,47 +19,47 @@ repos:

# Verify the contents of pyproject.toml
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.13
rev: v0.23
hooks:
- id: validate-pyproject

# Updating code to use modern python patterns where available.
- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
rev: v3.19.1
hooks:
- id: pyupgrade

# General Project code formatter.
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black

# Sorts python imports.
- repo: https://github.com/PyCQA/isort
# Note - on black update blacken-docs pin should also be updated.
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ['--profile=black']

# Formats python docstrings.
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.1
rev: v1.7.5
hooks:
- id: docformatter

# Formats code-blocks in documentation.
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
rev: 1.19.1
hooks:
- id: blacken-docs
# Note - on black update blacken-docs pin should also be updated.
additional_dependencies: ['black==22.12.0']

# Used to detect unintentionally unused code.
- repo: https://github.com/asottile/dead
rev: v1.5.1
rev: v1.5.2
hooks:
- id: dead
args: [
Expand All @@ -69,13 +69,13 @@ repos:
# Lint documentation source.
- repo: https://github.com/sphinx-contrib/sphinx-lint
# Make sure to also update the additional dependency pin
rev: v0.6.7
rev: v1.0.0
hooks:
- id: sphinx-lint

# lint documentation
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
rev: v1.1.2
hooks:
- id: doc8

Expand All @@ -91,14 +91,14 @@ repos:

# Static typehint linting.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
rev: v1.14.0
hooks:
- id: mypy

# A faster python linter
- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.269'
rev: 'v0.8.4'
hooks:
- id: ruff

Expand All @@ -118,7 +118,7 @@ repos:

# Lint code in pre-commit env, note: This ignores import checks.
- repo: https://github.com/PyCQA/pylint
rev: v2.17.4
rev: v3.3.3
hooks:
# Pylint is also run from within pre-commit for CI purposes.
- id: pylint
Expand All @@ -129,7 +129,7 @@ repos:

# Lint code for security flaws.
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.8.0
hooks:
- id: bandit
# Assert is used exclusively in pytest.
Expand Down