From 186e8e2f43b9504cd3d2c7d93e1b45c35ef084f8 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 7 Mar 2025 09:21:37 +0100 Subject: [PATCH 1/2] update title in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From af1729e4bb310cf295695e1dfb6d04d837cd01b3 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 7 Mar 2025 09:21:48 +0100 Subject: [PATCH 2/2] add a pre-commit configuration --- .pre-commit-config.yaml | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .pre-commit-config.yaml 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