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 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