Skip to content
Merged
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
25 changes: 14 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ ci:
skip: []
submodules: false

default_language_version:
python: python3.9

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.15
rev: v0.15.16
hooks:
- id: ruff
exclude: ^.github|sample|gql_mutations\.py|gql_queries\.py
args:
- --fix
- --line-length=127
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
rev: v2.3.3
hooks:
- id: autoflake
args:
Expand All @@ -32,7 +29,7 @@ repos:
- "--remove-unused-variables"
- "--remove-all-unused-imports"
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
rev: 26.5.1
hooks:
- id: black
args:
Expand All @@ -41,7 +38,7 @@ repos:
- --quiet
files: ^((src|sample|tests)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.4.2
hooks:
- id: codespell
args:
Expand All @@ -50,7 +47,7 @@ repos:
- --quiet-level=2
exclude_types: [csv, json]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: check-ast
- id: check-yaml
Expand Down Expand Up @@ -83,7 +80,7 @@ repos:
exclude_types: [json]
exclude: \.md$
- repo: https://github.com/cdce8p/python-typing-update
rev: v0.6.0
rev: v0.8.1
hooks:
# Run `python-typing-update` hook manually from time to time
# to update python typing syntax.
Expand All @@ -99,11 +96,17 @@ repos:
additional_dependencies:
- black==24.1.1
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py39-plus, --keep-runtime-typing]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
rev: v8.30.0
hooks:
- id: gitleaks
args:
- --redact
- --no-git
- --verbose
- --exit-code=1
- --config=.gitleaks.toml
Loading