From 976e4ef4c01e36176ea3db0e1141778c2e43677d Mon Sep 17 00:00:00 2001 From: martonvago Date: Mon, 23 Jun 2025 11:54:50 +0100 Subject: [PATCH 1/2] build: :wrench: add mypy config --- justfile | 5 ++++- mypy.ini | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 mypy.ini diff --git a/justfile b/justfile index 5ffeefa..b009dfd 100644 --- a/justfile +++ b/justfile @@ -25,9 +25,12 @@ test-python: -i coverage.xml \ -o htmlcov/coverage.svg -# Check Python code with the linter for any errors that need manual attention +# Check Python code for any errors that need manual attention check-python: + # Check formatting uv run ruff check . + # Check types + uv run mypy . # Reformat Python code to match coding style and general structure format-python: diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..4ed651d --- /dev/null +++ b/mypy.ini @@ -0,0 +1,5 @@ +[mypy] +python_version = 3.12 + +[mypy-quartodoc.*] +ignore_missing_imports = True From 8ad9762500ae80ec14489905da5896c3e6000c7a Mon Sep 17 00:00:00 2001 From: martonvago Date: Mon, 23 Jun 2025 12:54:49 +0100 Subject: [PATCH 2/2] build: :wrench: add mypy.ini to sync.yml --- .github/sync.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/sync.yml b/.github/sync.yml index e0338ba..5c11ed4 100644 --- a/.github/sync.yml +++ b/.github/sync.yml @@ -21,6 +21,8 @@ group: dest: LICENSE.md - source: .github/pull_request_template.md dest: .github/pull_request_template.md + - source: mypy.ini + dest: mypy.ini # Actions - source: .github/workflows/add-to-project.yml