Add precommit hook

This commit is contained in:
Stanislas Daniel Claude Dolcini 2024-08-25 11:45:36 +02:00
parent 4486930873
commit 4ecfb6b15f
Signed by untrusted user: Stan
GPG Key ID: 244943DFF8370D60
7 changed files with 47 additions and 10 deletions

View 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
View 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
View File

@ -0,0 +1,7 @@
---
extends: default
rules:
truthy: disable
line-length:
max: 160

0
license_gpl-2.0.txt Executable file → Normal file
View File

0
scripts/copy_files.py Executable file → Normal file
View File

0
scripts/entvalidate.py Normal file → Executable file
View File