From da66fe2d5fcfc5daa38018837b8c179c9486fb3a Mon Sep 17 00:00:00 2001 From: "djgagne@ou.edu" Date: Tue, 22 Oct 2024 18:23:01 -0600 Subject: [PATCH] Added precommit hook --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 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..567ad81 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +repos: +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.7.0 + hooks: + # Run the linter. + - id: ruff + args: [ --fix ] + # Run the formatter. + - id: ruff-format