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
d1336961
Commit
d1336961
authored
May 23, 2022
by
David Hotham
Committed by
Bjorn Neergaard
May 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix more truthy-bool mypy warnings
parent
daddf1ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
src/poetry/console/commands/init.py
+1
-1
src/poetry/console/commands/show.py
+1
-1
src/poetry/repositories/pypi_repository.py
+1
-1
src/poetry/utils/env.py
+1
-1
No files found.
src/poetry/console/commands/init.py
View file @
d1336961
...
@@ -126,7 +126,7 @@ The <c1>init</c1> command creates a basic <comment>pyproject.toml</> file in the
...
@@ -126,7 +126,7 @@ The <c1>init</c1> command creates a basic <comment>pyproject.toml</> file in the
description
=
self
.
ask
(
question
)
description
=
self
.
ask
(
question
)
author
=
self
.
option
(
"author"
)
author
=
self
.
option
(
"author"
)
if
not
author
and
vcs_config
and
vcs_config
.
get
(
"user.name"
):
if
not
author
and
vcs_config
.
get
(
"user.name"
):
author
=
vcs_config
[
"user.name"
]
author
=
vcs_config
[
"user.name"
]
author_email
=
vcs_config
.
get
(
"user.email"
)
author_email
=
vcs_config
.
get
(
"user.email"
)
if
author_email
:
if
author_email
:
...
...
src/poetry/console/commands/show.py
View file @
d1336961
...
@@ -524,7 +524,7 @@ lists all packages available."""
...
@@ -524,7 +524,7 @@ lists all packages available."""
constraint
=
parse_constraint
(
"^"
+
package
.
pretty_version
)
constraint
=
parse_constraint
(
"^"
+
package
.
pretty_version
)
if
latest
.
version
and
constraint
.
allows
(
latest
.
version
):
if
constraint
.
allows
(
latest
.
version
):
# It needs an immediate semver-compliant upgrade
# It needs an immediate semver-compliant upgrade
return
"semver-safe-update"
return
"semver-safe-update"
...
...
src/poetry/repositories/pypi_repository.py
View file @
d1336961
...
@@ -88,7 +88,7 @@ class PyPiRepository(HTTPRepository):
...
@@ -88,7 +88,7 @@ class PyPiRepository(HTTPRepository):
ignored_pre_release_packages
.
append
(
package
)
ignored_pre_release_packages
.
append
(
package
)
continue
continue
if
not
constraint
or
(
constraint
and
constraint
.
allows
(
package
.
version
)
):
if
constraint
.
allows
(
package
.
version
):
packages
.
append
(
package
)
packages
.
append
(
package
)
self
.
_log
(
self
.
_log
(
...
...
src/poetry/utils/env.py
View file @
d1336961
...
@@ -289,7 +289,7 @@ class SitePackages:
...
@@ -289,7 +289,7 @@ class SitePackages:
f
"{path} is not relative to any discovered {site_type}sites"
f
"{path} is not relative to any discovered {site_type}sites"
)
)
results
=
[
candidate
/
path
for
candidate
in
candidates
if
candidate
]
results
=
[
candidate
/
path
for
candidate
in
candidates
]
if
not
results
and
strict
:
if
not
results
and
strict
:
raise
RuntimeError
(
raise
RuntimeError
(
...
...
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