mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-29 06:39:22 +01:00
.pre-commit-config.yaml: autoupdate & add hooks I can see myself using in the future
This commit is contained in:
parent
907b1a425a
commit
1a58db1a6a
@ -17,7 +17,7 @@ default_language_version:
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-case-conflict
|
||||
@ -30,6 +30,19 @@ repos:
|
||||
- id: fix-byte-order-marker
|
||||
- id: trailing-whitespace
|
||||
exclude_types: [markdown]
|
||||
- id: check-docstring-first
|
||||
#- id: check-json
|
||||
- id: check-merge-conflict
|
||||
#- id: check-toml
|
||||
#- id: check-xml
|
||||
- id: debug-statements
|
||||
- id: fix-encoding-pragma
|
||||
args: [--remove]
|
||||
- id: mixed-line-ending
|
||||
# .gitattributes is trusted to handle this
|
||||
args: [--fix=no]
|
||||
#- id: pretty-format-json
|
||||
#- id: requirements-txt-fixer
|
||||
- repo: https://github.com/thlorenz/doctoc
|
||||
rev: v2.2.0
|
||||
hooks:
|
||||
@ -40,6 +53,18 @@ repos:
|
||||
rev: "v1.5.1"
|
||||
hooks:
|
||||
- id: mypy
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.15.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
- repo: https://github.com/asottile/reorder-python-imports
|
||||
rev: v3.12.0
|
||||
hooks:
|
||||
- id: reorder-python-imports
|
||||
- repo: https://github.com/asottile/add-trailing-comma
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: add-trailing-comma
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: "v3.0.3"
|
||||
hooks:
|
||||
|
Loading…
Reference in New Issue
Block a user