mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-29 14:49: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:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.4.0
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
@ -30,6 +30,19 @@ repos:
|
|||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude_types: [markdown]
|
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
|
- repo: https://github.com/thlorenz/doctoc
|
||||||
rev: v2.2.0
|
rev: v2.2.0
|
||||||
hooks:
|
hooks:
|
||||||
@ -40,6 +53,18 @@ repos:
|
|||||||
rev: "v1.5.1"
|
rev: "v1.5.1"
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- 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
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: "v3.0.3"
|
rev: "v3.0.3"
|
||||||
hooks:
|
hooks:
|
||||||
|
Loading…
Reference in New Issue
Block a user