Skip to content

Commit

Permalink
use explicit_package_bases to avoid duplicate-file problems in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed May 9, 2022
1 parent e30b1e6 commit 4777871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ repos:
rev: v0.942
hooks:
- id: mypy
exclude: examples/simple/setup.py
additional_dependencies: [types-requests]

- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ strict_equality = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
exclude = [
"examples/simple/setup.py",
]
explicit_package_bases = true
namespace_packages = true


[[tool.mypy.overrides]]
Expand Down

0 comments on commit 4777871

Please sign in to comment.