Skip to content

Commit

Permalink
Pick off some low-hanging fruit from mypy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and neersighted committed Nov 14, 2021
1 parent 6c83817 commit 0d4dff7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 1 addition & 4 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ignore_errors = True
[mypy-poetry.installation.*]
ignore_errors = True

[mypy-poetry.locations.*]
[mypy-poetry.layouts.*]
ignore_errors = True

[mypy-poetry.mixology.*]
Expand All @@ -37,9 +37,6 @@ ignore_errors = True
[mypy-poetry.packages.*]
ignore_errors = True

[mypy-poetry.plugins.*]
ignore_errors = True

[mypy-poetry.publishing.*]
ignore_errors = True

Expand Down
5 changes: 3 additions & 2 deletions poetry/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@


def data_dir() -> Path:
if os.getenv("POETRY_HOME"):
return Path(os.getenv("POETRY_HOME")).expanduser()
poetry_home = os.getenv("POETRY_HOME")
if poetry_home:
return Path(poetry_home).expanduser()

return Path(user_data_dir("pypoetry", roaming=True))
2 changes: 1 addition & 1 deletion poetry/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PluginManager:
def __init__(self, type, disable_plugins=False): # type: (str, bool) -> None
self._type = type
self._disable_plugins = disable_plugins
self._plugins = []
self._plugins: List[Plugin] = []

def load_plugins(self): # type: () -> None
if self._disable_plugins:
Expand Down

0 comments on commit 0d4dff7

Please sign in to comment.