mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 10:42:56 +01:00
pre-commit: migrate entirely to the offline version
This commit is contained in:
parent
41a18229a2
commit
05290f4f3c
16
.pre-commit-config.yaml
vendored
16
.pre-commit-config.yaml
vendored
@ -9,7 +9,7 @@ ci:
|
|||||||
# the frequency of unnecessary PRs.
|
# the frequency of unnecessary PRs.
|
||||||
# https://github.com/pre-commit-ci/issues/issues/83
|
# https://github.com/pre-commit-ci/issues/issues/83
|
||||||
autoupdate_schedule: quarterly
|
autoupdate_schedule: quarterly
|
||||||
skip: [pylint, pnpm-prettier]
|
skip: [pylint, prettier]
|
||||||
|
|
||||||
# use pypy3 for python
|
# use pypy3 for python
|
||||||
default_language_version:
|
default_language_version:
|
||||||
@ -73,22 +73,10 @@ repos:
|
|||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: pnpm-prettier
|
- id: prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
exclude_types: [json]
|
|
||||||
# - repo: https://github.com/rbubley/mirrors-prettier
|
|
||||||
# rev: "v3.3.0"
|
|
||||||
# hooks:
|
|
||||||
# - id: prettier
|
|
||||||
# exclude_types: [python, pyi, jupyter]
|
|
||||||
# additional_dependencies: [
|
|
||||||
# # https://www.npmjs.com/package/prettier
|
|
||||||
# "prettier@3.2.5",
|
|
||||||
# # https://www.npmjs.com/package/@prettier/plugin-ruby
|
|
||||||
# "@prettier/plugin-ruby@4.0.4",
|
|
||||||
# ]
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.4.2
|
rev: 24.4.2
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
*.json
|
Loading…
Reference in New Issue
Block a user