update pre-commit (#330)

This commit is contained in:
Shuchang Zheng
2024-05-16 17:11:49 -07:00
committed by GitHub
parent 482a8b8466
commit 9e1b07451f
19 changed files with 40 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ['--maxkb=5000']
@@ -15,13 +15,13 @@ repos:
- id: detect-private-key
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
language_version: python3.11
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.4.2
hooks:
- id: black
language_version: python3.11
@@ -35,7 +35,7 @@ repos:
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
rev: v1.10.0
hooks:
- id: mypy
args: [--show-error-codes, --warn-unused-configs, --disallow-untyped-calls, --disallow-untyped-defs, --disallow-incomplete-defs, --check-untyped-defs, --python-version=3.11]
@@ -54,7 +54,7 @@ repos:
)
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
rev: v2.3.1
hooks:
- id: autoflake
name: autoflake
@@ -69,7 +69,7 @@ repos:
# pass_filenames: false
# always_run: true
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0" # Use the sha or tag you want to point at
rev: "v4.0.0-alpha.8" # Use the sha or tag you want to point at
hooks:
- id: prettier
types: [javascript]