Add precommit hook
This commit is contained in:
parent
4486930873
commit
4ecfb6b15f
12
.gitea/workflows/pre-commit.yml
Normal file
12
.gitea/workflows/pre-commit.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: pre-commit
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
- uses: pre-commit/action@v3.0.1
|
18
.pre-commit-config.yaml
Normal file
18
.pre-commit-config.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.6.0
|
||||||
|
hooks:
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-json
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-yaml
|
||||||
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
|
rev: v1.35.1
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
|
args:
|
||||||
|
- -s
|
7
.yamllint
Normal file
7
.yamllint
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
truthy: disable
|
||||||
|
line-length:
|
||||||
|
max: 160
|
0
license_gpl-2.0.txt
Executable file → Normal file
0
license_gpl-2.0.txt
Executable file → Normal file
0
scripts/copy_files.py
Executable file → Normal file
0
scripts/copy_files.py
Executable file → Normal file
0
scripts/entvalidate.py
Normal file → Executable file
0
scripts/entvalidate.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user