From 3071a6b0f65417e05b591bed62e95bf580ee067b Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sun, 28 Jul 2024 01:10:29 -0600 Subject: [PATCH] Mods --- .pre-commit-config.yaml | 18 ++++++++++++++++++ requirements.txt | 3 ++- 2 files changed, 20 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..a62b70d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +repos: +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.11.0 + hooks: + - id: mypy + files: "^cromulant/.*" + args: [--strict, --strict, --strict, cromulant/main.py] +- repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.5.5 + hooks: + - id: ruff + name: ruff check + entry: ruff check + files: ^cromulant/ + - id: ruff + name: ruff format + entry: ruff format + files: ^cromulant/ \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index d2d3bea..4014e22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ PySide6 == 6.7.2 appdirs == 1.4.4 wonderwords == 2.2.0 -fonttools == 4.53.1 \ No newline at end of file +fonttools == 4.53.1 +pre-commit == 3.7.1 \ No newline at end of file