pre-commit: migrate entirely to the offline version

This commit is contained in:
Aminda Suomalainen 2024-06-11 21:03:40 +03:00
parent 41a18229a2
commit 05290f4f3c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 3 additions and 14 deletions

View File

@ -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:

View File

@ -0,0 +1 @@
*.json