Skip to content

Commit

Permalink
Configure mypy in pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Jul 10, 2023
1 parent d0b7a82 commit 378c524
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Expand Up @@ -11,7 +11,7 @@ steps:
- python setup.py develop
- pip install -r requirements-test.txt
- ruff check .
- mypy . --strict --ignore-missing-imports --exclude build
- mypy .
- cc-test-reporter before-build
- coverage run -m unittest
- exitcode="$?"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -96,7 +96,7 @@ Development
python setup.py develop
pip install -r requirements-test.txt
ruff check .
mypy . --strict --ignore-missing-imports
mypy .
coverage run -m unittest
coverage report -m
```
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
@@ -1,2 +1,9 @@
[tool.ruff]
select = ["E", "F", "B"]

[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = [
"build",
]

0 comments on commit 378c524

Please sign in to comment.