Skip to content

Commit

Permalink
Remove src/poetry/__init__.py to convert to namespace package (#5614)
Browse files Browse the repository at this point in the history
* Remove `poetry.__init__` to convert to namespace package
* Add mypy settings to account for namespace package
* Update flake8 pre-commit config to allow namespace package
* Mark poetry-core as a third-party package in isort's config
  • Loading branch information
lafrenierejm authored May 30, 2022
1 parent 5b8555c commit 31465a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ repos:
- flake8-bugbear==22.4.25
- flake8-comprehensions==3.10.0
- flake8-eradicate==1.2.1
- flake8-no-pep420==2.3.0
- flake8-quotes==3.3.1
- flake8-simplify==0.19.2
- flake8-tidy-imports==4.8.0
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ lines_between_types = 1
lines_after_imports = 2
src_paths = ["src", "tests"]
extend_skip = ["setup.py"]
known_third_party = ["poetry.core"]


[tool.black]
Expand All @@ -117,6 +118,9 @@ force-exclude = '''

[tool.mypy]
files = "src"
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
show_error_codes = true
strict = true
enable_error_code = [
Expand Down
5 changes: 0 additions & 5 deletions src/poetry/__init__.py

This file was deleted.

0 comments on commit 31465a4

Please sign in to comment.