Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
0d4dff71
Commit
0d4dff71
authored
Nov 13, 2021
by
David Hotham
Committed by
Bjorn Neergaard
Nov 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pick off some low-hanging fruit from mypy checks
parent
6c838179
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
mypy.ini
+1
-4
poetry/locations.py
+3
-2
poetry/plugins/plugin_manager.py
+1
-1
No files found.
mypy.ini
View file @
0d4dff71
...
@@ -28,7 +28,7 @@ ignore_errors = True
...
@@ -28,7 +28,7 @@ ignore_errors = True
[mypy-poetry.installation.*]
[mypy-poetry.installation.*]
ignore_errors
=
True
ignore_errors
=
True
[mypy-poetry.l
ocation
s.*]
[mypy-poetry.l
ayout
s.*]
ignore_errors
=
True
ignore_errors
=
True
[mypy-poetry.mixology.*]
[mypy-poetry.mixology.*]
...
@@ -37,9 +37,6 @@ ignore_errors = True
...
@@ -37,9 +37,6 @@ ignore_errors = True
[mypy-poetry.packages.*]
[mypy-poetry.packages.*]
ignore_errors
=
True
ignore_errors
=
True
[mypy-poetry.plugins.*]
ignore_errors
=
True
[mypy-poetry.publishing.*]
[mypy-poetry.publishing.*]
ignore_errors
=
True
ignore_errors
=
True
...
...
poetry/locations.py
View file @
0d4dff71
...
@@ -15,7 +15,8 @@ REPOSITORY_CACHE_DIR = Path(CACHE_DIR) / "cache" / "repositories"
...
@@ -15,7 +15,8 @@ REPOSITORY_CACHE_DIR = Path(CACHE_DIR) / "cache" / "repositories"
def
data_dir
()
->
Path
:
def
data_dir
()
->
Path
:
if
os
.
getenv
(
"POETRY_HOME"
):
poetry_home
=
os
.
getenv
(
"POETRY_HOME"
)
return
Path
(
os
.
getenv
(
"POETRY_HOME"
))
.
expanduser
()
if
poetry_home
:
return
Path
(
poetry_home
)
.
expanduser
()
return
Path
(
user_data_dir
(
"pypoetry"
,
roaming
=
True
))
return
Path
(
user_data_dir
(
"pypoetry"
,
roaming
=
True
))
poetry/plugins/plugin_manager.py
View file @
0d4dff71
...
@@ -19,7 +19,7 @@ class PluginManager:
...
@@ -19,7 +19,7 @@ class PluginManager:
def
__init__
(
self
,
type
,
disable_plugins
=
False
):
# type: (str, bool) -> None
def
__init__
(
self
,
type
,
disable_plugins
=
False
):
# type: (str, bool) -> None
self
.
_type
=
type
self
.
_type
=
type
self
.
_disable_plugins
=
disable_plugins
self
.
_disable_plugins
=
disable_plugins
self
.
_plugins
=
[]
self
.
_plugins
:
List
[
Plugin
]
=
[]
def
load_plugins
(
self
):
# type: () -> None
def
load_plugins
(
self
):
# type: () -> None
if
self
.
_disable_plugins
:
if
self
.
_disable_plugins
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment