Skip to content

Commit

Permalink
add --no-namespace-packages flag to mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Sep 17, 2023
1 parent aac1661 commit d989ac9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
poetry install --no-root
- name: Run mypy
run: poetry run mypy . --no-namespace-packages

run: poetry run mypy .
- name: Run Black
if: always()
run: poetry run black --check .
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
plugins = ["pydantic.mypy"]
no_namespace_packages = true


[tool.black]
Expand Down
2 changes: 0 additions & 2 deletions tests/test_empty.py

This file was deleted.

0 comments on commit d989ac9

Please sign in to comment.