mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 08:09:23 +01:00
pre-commit: enable pretty-format-json, run it
This commit is contained in:
parent
5e0127a16f
commit
17545687ab
8
.pre-commit-config.yaml
vendored
8
.pre-commit-config.yaml
vendored
@ -34,7 +34,7 @@ repos:
|
|||||||
args: ["--markdown-linebreak-ext", "md,markdown"]
|
args: ["--markdown-linebreak-ext", "md,markdown"]
|
||||||
exclude_types: [svg, tsv]
|
exclude_types: [svg, tsv]
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
#- id: check-json
|
- id: check-json
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
#- id: check-toml
|
#- id: check-toml
|
||||||
#- id: check-xml
|
#- id: check-xml
|
||||||
@ -42,7 +42,8 @@ repos:
|
|||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
# .gitattributes is trusted to handle this
|
# .gitattributes is trusted to handle this
|
||||||
args: [--fix=no]
|
args: [--fix=no]
|
||||||
#- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
|
args: [--autofix, --no-ensure-ascii]
|
||||||
#- id: requirements-txt-fixer
|
#- id: requirements-txt-fixer
|
||||||
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
|
||||||
rev: v1.6.1
|
rev: v1.6.1
|
||||||
@ -107,9 +108,6 @@ repos:
|
|||||||
name: prettier
|
name: prettier
|
||||||
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
|
entry: corepack pnpm exec prettier --cache --ignore-unknown --write
|
||||||
language: system
|
language: system
|
||||||
# Better handled by pretty-format-json from pre-commit-hooks.
|
|
||||||
# Remember to have *.json in .prettierignore!
|
|
||||||
exclude_types: [json]
|
|
||||||
|
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
rev: "2.7.3"
|
rev: "2.7.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user