Compare commits

...

2 commits

Author SHA1 Message Date
af1729e4bb
add a pre-commit configuration 2025-03-07 09:21:48 +01:00
186e8e2f43
update title in README 2025-03-07 09:21:37 +01:00
2 changed files with 49 additions and 1 deletions

48
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,48 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# Whitespace
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: |
(?x)(
\.min\.(css|js)$|
\.svg$|
)
- id: mixed-line-ending
args:
- "--fix=lf"
# VCS
- id: check-merge-conflict
args:
- "--assume-in-merge"
# Binaries
- id: check-shebang-scripts-are-executable
# Config / Data Files (syntax check only)
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml
# Python
- id: debug-statements
- id: requirements-txt-fixer
# Sensitive Data
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
args:
- "--target-version=py313"
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
args: ["--profile", "black", "--force-single-line-imports"]
- repo: https://github.com/djlint/djLint
rev: v1.36.4
hooks:
- id: djlint-reformat-django
- id: djlint-django

View file

@ -1,4 +1,4 @@
# servala-portal
# Servala Portal
The Servala Self-Service Portal