Skip to content

Commit 3b56108

Browse files
authored
build: 🔧 add mypy config (#89)
# Description This PR adds the same mypy config as in Sprout. I hope this is everything! Closes #88 This PR needs a quick review. ## Checklist - [x] Added or updated tests - [x] Updated documentation
1 parent bcb50fc commit 3b56108

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ group:
2121
dest: LICENSE.md
2222
- source: .github/pull_request_template.md
2323
dest: .github/pull_request_template.md
24+
- source: mypy.ini
25+
dest: mypy.ini
2426

2527
# Actions
2628
- source: .github/workflows/add-to-project.yml

justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ test-python:
2525
-i coverage.xml \
2626
-o htmlcov/coverage.svg
2727

28-
# Check Python code with the linter for any errors that need manual attention
28+
# Check Python code for any errors that need manual attention
2929
check-python:
30+
# Check formatting
3031
uv run ruff check .
32+
# Check types
33+
uv run mypy .
3134

3235
# Reformat Python code to match coding style and general structure
3336
format-python:

mypy.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[mypy]
2+
python_version = 3.12
3+
4+
[mypy-quartodoc.*]
5+
ignore_missing_imports = True

0 commit comments

Comments
 (0)