diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..5e1217a --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/README.md b/README.md index 3bb9c24..cf9a7d7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# servala-portal +# Servala Portal The Servala Self-Service Portal