Add .pre-commit-config.yaml
All checks were successful
Auto Maintenance Cycle / pre-commit Linting (push) Successful in 19s
All checks were successful
Auto Maintenance Cycle / pre-commit Linting (push) Successful in 19s
This commit is contained in:
parent
49ab01f89e
commit
c89587afe9
50
.pre-commit-config.yaml
Normal file
50
.pre-commit-config.yaml
Normal file
@ -0,0 +1,50 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
exclude: (.txt$|.ipynb$|README.md$|readme.mde$)
|
||||
- id: trailing-whitespace
|
||||
exclude: (.txt$|README.md$)
|
||||
- id: check-yaml
|
||||
- id: check-json
|
||||
- id: check-toml
|
||||
- id: check-xml
|
||||
- id: check-added-large-files
|
||||
args: [--enforce-all]
|
||||
- id: name-tests-test
|
||||
- id: detect-private-key
|
||||
- id: check-case-conflict
|
||||
- id: check-symlinks
|
||||
- id: check-docstring-first
|
||||
- id: pretty-format-json
|
||||
args: [--autofix, --no-sort-keys, --no-ensure-ascii]
|
||||
- id: check-merge-conflict
|
||||
- id: no-commit-to-branch
|
||||
args: [--branch, main]
|
||||
|
||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||
rev: v2.11.0
|
||||
hooks:
|
||||
- id: pretty-format-ini
|
||||
args: [--autofix]
|
||||
- id: pretty-format-toml
|
||||
args: [--autofix]
|
||||
- id: pretty-format-yaml
|
||||
args: [--autofix]
|
||||
|
||||
- repo: https://github.com/frnmst/md-toc
|
||||
rev: 8.2.0
|
||||
hooks:
|
||||
- id: md-toc
|
||||
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks-java
|
||||
rev: 1.3.10
|
||||
hooks:
|
||||
- id: validate-html
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: prettier
|
||||
types_or: [css, javascript]
|
Loading…
x
Reference in New Issue
Block a user