🧑‍💻 Update pre-commit configuration file.

This commit is contained in:
BalconyJH 2024-11-03 16:07:58 +08:00
parent 060ccceecb
commit 893a235bf0
No known key found for this signature in database
GPG Key ID: FF602923BD2A1FAF
2 changed files with 5 additions and 5 deletions

View File

@ -11,23 +11,23 @@ repos:
hooks: hooks:
- id: ruff - id: ruff
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]
stages: [commit] stages: [pre-commit]
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: 5.13.2 rev: 5.13.2
hooks: hooks:
- id: isort - id: isort
stages: [commit] stages: [pre-commit]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 24.8.0 rev: 24.8.0
hooks: hooks:
- id: black - id: black
stages: [commit] stages: [pre-commit]
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8 rev: v4.0.0-alpha.8
hooks: hooks:
- id: prettier - id: prettier
types_or: [javascript, jsx, ts, tsx, markdown, yaml, json] types_or: [javascript, jsx, ts, tsx, markdown, yaml, json]
stages: [commit] stages: [pre-commit]

View File

@ -77,7 +77,7 @@ adapters = [
[tool.black] [tool.black]
line-length = 88 line-length = 88
target-version = ["py39", "py310", "py311", "py312"] target-version = ["py310", "py311", "py312"]
include = '\.pyi?$' include = '\.pyi?$'
extend-exclude = ''' extend-exclude = '''
''' '''