Merge pull request #92 from bocan/pre-commit-fixes

style: Add pre-commit checks and code cleanup
This commit is contained in:
mag37
2024-08-17 20:39:07 +02:00
committed by GitHub
12 changed files with 72 additions and 64 deletions

11
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']

View File

@@ -343,4 +343,3 @@ else
fi
exit 0

View File

@@ -33,5 +33,3 @@ apprise -vv -t "$MessageTitle" -b "$MessageBody" \
# curl -X POST -F "title=$MessageTitle" -F "body=$MessageBody" -F "tags=all" $AppriseURL
}