From b86c3302fd053fd5a0aef63f7812aa4451d54c4d Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Fri, 11 Apr 2025 11:33:52 +0200 Subject: [PATCH] Add pre-commit configuration --- .pre-commit-config.yaml | 10 ++++++++++ requirements.txt | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) 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..549aaa0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.0 + hooks: + - id: ruff + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.9.0 + hooks: + - id: mypy \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 010ed04..e6911e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ uvicorn[standard] sphinx ruff mypy -tox \ No newline at end of file +tox +pre-commit \ No newline at end of file -- GitLab