Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#6414)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](psf/black@22.6.0...22.8.0)
<!--pre-commit.ci end-->

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Sep 6, 2022
1 parent dc9d84c commit 4078082
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ repos:
args: [--lines-after-imports, "-1"]

- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.8.0
hooks:
- id: black

Expand Down
12 changes: 8 additions & 4 deletions src/poetry/console/commands/env/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ def _display_complete_info(self, env: Env) -> None:
listing = [
f"<info>Python</info>: <comment>{env_python_version}</>",
f"<info>Implementation</info>: <comment>{env.python_implementation}</>",
"<info>Path</info>: "
f" <comment>{env.path if env.is_venv() else 'NA'}</>",
"<info>Executable</info>: "
f" <comment>{env.python if env.is_venv() else 'NA'}</>",
(
"<info>Path</info>: "
f" <comment>{env.path if env.is_venv() else 'NA'}</>"
),
(
"<info>Executable</info>: "
f" <comment>{env.python if env.is_venv() else 'NA'}</>"
),
]
if env.is_venv():
listing.append(
Expand Down
6 changes: 4 additions & 2 deletions tests/console/commands/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def test_run_has_helpful_error_when_command_not_found(
# The expected string in this assertion assumes Command Prompt (cmd.exe) is the
# shell used.
assert capfd.readouterr().err.splitlines() == [
"'nonexistent-command' is not recognized as an internal or external"
" command,",
(
"'nonexistent-command' is not recognized as an internal or external"
" command,"
),
"operable program or batch file.",
]
else:
Expand Down
6 changes: 4 additions & 2 deletions tests/utils/test_dependency_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@
},
),
(
'cachecontrol[filecache] (>=0.12.9,<0.13.0); python_version >= "3.6" and'
' python_version < "4.0"',
(
'cachecontrol[filecache] (>=0.12.9,<0.13.0); python_version >= "3.6"'
' and python_version < "4.0"'
),
{
"version": ">=0.12.9,<0.13.0",
"markers": 'python_version >= "3.6" and python_version < "4.0"',
Expand Down

0 comments on commit 4078082

Please sign in to comment.