From 77f6979b7b763fc24274f548792d68b60fb983ff Mon Sep 17 00:00:00 2001 From: mcDandy Date: Fri, 9 Jan 2026 13:50:02 +0100 Subject: [PATCH] ruff --fix on commit --- .gitignore | 1 + .pre-commit-config.yaml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index 946b0c4..781a14d 100644 --- a/.gitignore +++ b/.gitignore @@ -116,5 +116,6 @@ node.zip /.vs *.editorconfig *.yaml +!.pre-commit-config.yaml /more_math.pyproj /more_math.slnx diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1fd7da6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.4 + hooks: + # Run the linter + - id: ruff + args: [--fix] + # Run the formatter + - id: ruff-format