mirror of
https://github.com/restincode/restincode.git
synced 2026-09-12 01:29:29 +02:00
chore(pre-commit-config.yaml): update pre-commit hooks and configuration
The pre-commit hooks have been updated to the latest versions. The following changes were made: - The `check-yaml` hook now checks for proper YAML formatting. - The `check-json` hook now checks for proper JSON formatting. - A new hook `no-commit-to-branch` has been added to prevent local commits to the `main` branch. - The `autofix_prs` configuration under `ci` has been set to `false`. These changes improve the code quality and enforce stricter formatting standards. The addition of the `no-commit-to-branch` hook helps prevent accidental commits to the `main` branch.
This commit is contained in:
parent
17fc3ddc5b
commit
7c49183e68
1 changed files with 6 additions and 4 deletions
|
|
@ -3,13 +3,13 @@ repos:
|
|||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0 # use `pre-commit autoupdate` to get the latest rev
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: check-json
|
||||
- id: check-yaml # check for proper yaml formatting
|
||||
- id: check-json # check for proper json formatting
|
||||
- id: no-commit-to-branch
|
||||
args: ['--branch', 'main'] # prevent local commits to main branch
|
||||
# - id: pretty-format-json
|
||||
# - id: end-of-file-fixer
|
||||
# - id: trailing-whitespace
|
||||
ci:
|
||||
autofix_prs: false
|
||||
#- repo: https://github.com/pre-commit/mirrors-csslint
|
||||
# rev: v1.0.5 # use `pre-commit autoupdate` to get the latest rev
|
||||
# hooks:
|
||||
|
|
@ -27,3 +27,5 @@ ci:
|
|||
# rev: v2.7.1
|
||||
# hooks:
|
||||
# - id: prettier
|
||||
ci:
|
||||
autofix_prs: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue