Skip to content

Commit 4c46b21

Browse files
committed
Keep type checks on project sources
1 parent 928ce6c commit 4c46b21

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ jobs:
155155
- name: Run mypy (type checking)
156156
continue-on-error: true # Scientific code often has complex types
157157
run: |
158-
mypy src/ --ignore-missing-imports
158+
mypy src/

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
ruff check src/ scripts/
3939
black --check src/ scripts/
40-
mypy src/ --ignore-missing-imports
40+
mypy src/
4141
pytest -q --no-cov
4242
4343
- name: Verify release tag and main ancestry

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ select = ["E", "F", "I", "N", "W", "UP"]
123123

124124
[tool.mypy]
125125
python_version = "3.10"
126+
follow_imports = "skip"
127+
ignore_missing_imports = true
126128
warn_return_any = true
127129
warn_unused_configs = true
128130
disallow_untyped_defs = false # Too strict for scientific code

0 commit comments

Comments
 (0)