mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
.pre-commit-config.yaml: only use local prettier here as well
This commit is contained in:
parent
a9965d33e3
commit
5728846e88
@ -3,7 +3,7 @@
|
|||||||
ci:
|
ci:
|
||||||
# Attempts to use networking and fails at name resolution, local hook
|
# Attempts to use networking and fails at name resolution, local hook
|
||||||
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
||||||
skip: [pnpm-prettier]
|
skip: [prettier]
|
||||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||||
# 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
|
||||||
@ -129,28 +129,12 @@ repos:
|
|||||||
|
|
||||||
- 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]
|
exclude_types: [json]
|
||||||
|
|
||||||
#- repo: https://github.com/pre-commit/mirrors-prettier
|
|
||||||
# - repo: https://github.com/rbubley/mirrors-prettier
|
|
||||||
# rev: "v3.2.5"
|
|
||||||
# hooks:
|
|
||||||
# - id: prettier
|
|
||||||
# additional_dependencies: [
|
|
||||||
# # https://www.npmjs.com/package/prettier
|
|
||||||
# "prettier@3.2.5",
|
|
||||||
# # https://www.npmjs.com/package/prettier-plugin-nginx
|
|
||||||
# "prettier-plugin-nginx@1.0.3",
|
|
||||||
# # https://www.npmjs.com/package/prettier-plugin-toml
|
|
||||||
# "prettier-plugin-toml@2.0.1",
|
|
||||||
# # https://www.npmjs.com/package/prettier-plugin-sort-json
|
|
||||||
# #"prettier-plugin-sort-json@4.0.0",
|
|
||||||
# ]
|
|
||||||
|
|
||||||
# Black, opinionated Python code formatter
|
# Black, opinionated Python code formatter
|
||||||
# - repo: https://github.com/psf/black
|
# - repo: https://github.com/psf/black
|
||||||
# rev: 23.9.1
|
# rev: 23.9.1
|
||||||
|
Loading…
Reference in New Issue
Block a user