Skip to content

Commit

Permalink
Merge pull request #169 from thom311/th/mypy-config
Browse files Browse the repository at this point in the history
[th/mypy-config] add pyproject.toml and move mypy.ini configurations there
  • Loading branch information
wizhaoredhat authored Dec 2, 2024
2 parents 30f0ceb + d71a15a commit 2638d8b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Type check with Mypy
run: |
mypy --version
mypy --strict --config-file mypy.ini .
mypy
- name: Run tests with Pytest
run: |
pytest --version
Expand Down
10 changes: 0 additions & 10 deletions mypy.ini

This file was deleted.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.mypy]
strict = true
files = "."

[[tool.mypy.overrides]]
module = "jc"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "serial"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "pytest"
ignore_missing_imports = true

0 comments on commit 2638d8b

Please sign in to comment.