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