diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fdb7c93..f6d5393 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,14 @@ repos: hooks: - id: clang-format args: ["--style=file"] + - repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.14.11 + hooks: + # Run the linter. + - id: ruff-check + # Run the formatter. + - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: diff --git a/.ruff.toml b/.ruff.toml new file mode 100644 index 0000000..3dceebb --- /dev/null +++ b/.ruff.toml @@ -0,0 +1,5 @@ +# Exclude files inherited from MOOSE +extend-exclude = [ + "run_tests", + "doc/moosedocs.py", +]