summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2024-12-01 12:00:00 +0000
committermhsn <mail@mhsn.net>2024-12-01 12:00:00 +0000
commit0b1a6fc65a62a656bef6055027faf2f5e1f3235a (patch)
tree76c3fecc4e238c3880eed9e76dcdada32741c476
downloadaoc-0b1a6fc65a62a656bef6055027faf2f5e1f3235a.tar.gz
aoc-0b1a6fc65a62a656bef6055027faf2f5e1f3235a.zip
Initial commit
-rw-r--r--.gitignore3
-rw-r--r--.pre-commit-config.yaml15
2 files changed, 18 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..873c5b2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+**/rust/target/
+**/data/
+**/puzzle.txt
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..ba172ed
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,15 @@
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v5.0.0
+ hooks:
+ - id: check-executables-have-shebangs
+ - id: check-shebang-scripts-are-executable
+ - id: check-yaml
+ - id: end-of-file-fixer
+ - id: trailing-whitespace
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.8.2
+ hooks:
+ - id: ruff
+ args: [ --fix ]
+ - id: ruff-format