From bc23c7a36207cdc3244a243ab3203650cfb2caff Mon Sep 17 00:00:00 2001 From: roli2py Date: Sat, 15 Aug 2026 17:44:13 +0300 Subject: [PATCH] Add `prek` Add `prek` to prevent typical problems when making changes. --- prek.toml | 26 ++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 27 insertions(+) create mode 100644 prek.toml diff --git a/prek.toml b/prek.toml new file mode 100644 index 0000000..e2d7a76 --- /dev/null +++ b/prek.toml @@ -0,0 +1,26 @@ +minimum_prek_version = "0.4.13" + +[[repos]] +repo = "builtin" +hooks = [ + { id = "trailing-whitespace" }, + { id = "check-added-large-files" }, + { id = "check-case-conflict" }, + { id = "check-illegal-windows-names" }, + { id = "end-of-file-fixer" }, + { id = "fix-byte-order-marker" }, + { id = "forbid-new-submodules" }, + { id = "check-json" }, + { id = "check-json5" }, + { id = "pretty-format-json", args = ["--autofix"] }, + { id = "check-toml" }, + { id = "check-yaml" }, + { id = "mixed-line-ending", args = ["--fix=lf"] }, + { id = "check-symlinks" }, + { id = "destroyed-symlinks" }, + { id = "check-merge-conflict" }, + { id = "detect-private-key" }, + { id = "no-commit-to-branch" }, + { id = "check-executables-have-shebangs" }, + { id = "check-shebang-scripts-are-executable" }, +] diff --git a/requirements.txt b/requirements.txt index 284376d..d36ce80 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ discord.py~=2.3.2 python-dotenv~=1.0.0 audioop-lts; python_version>='3.13' requests~=2.34.2 +prek~=0.4.13