From aefd98e95212ca5ebe0752e1ad6e624ef5299fea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 20:29:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/packages/test_vcs_dependency.py | 6 ++++-- tests/test_factory.py | 30 ++++++++++++++++++--------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/tests/packages/test_vcs_dependency.py b/tests/packages/test_vcs_dependency.py index 7a146e2a3..0d9d01910 100644 --- a/tests/packages/test_vcs_dependency.py +++ b/tests/packages/test_vcs_dependency.py @@ -39,8 +39,10 @@ ), ( {"branch": "main", "directory": "sub"}, - "poetry @ git+https://github.com/python-poetry/poetry.git" - "@main#subdirectory=sub", + ( + "poetry @ git+https://github.com/python-poetry/poetry.git" + "@main#subdirectory=sub" + ), ), ], ) diff --git a/tests/test_factory.py b/tests/test_factory.py index db5f54124..52a205367 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -231,16 +231,24 @@ def test_validate_strict_fails_strict_and_non_strict() -> None: "'version' is a required property", "'description' is a required property", "'authors' is a required property", - 'Script "a_script_with_unknown_extra" requires extra "foo" which is not' - " defined.", - "Declared README files must be of same type: found text/markdown," - " text/x-rst", + ( + 'Script "a_script_with_unknown_extra" requires extra "foo" which is not' + " defined." + ), + ( + "Declared README files must be of same type: found text/markdown," + " text/x-rst" + ), ], "warnings": [ - "A wildcard Python dependency is ambiguous. Consider specifying a more" - " explicit one.", - 'The "pathlib2" dependency specifies the "allows-prereleases" property,' - ' which is deprecated. Use "allow-prereleases" instead.', + ( + "A wildcard Python dependency is ambiguous. Consider specifying a more" + " explicit one." + ), + ( + 'The "pathlib2" dependency specifies the "allows-prereleases" property,' + ' which is deprecated. Use "allow-prereleases" instead.' + ), ], } @@ -375,8 +383,10 @@ def test_create_poetry_with_markers_and_extras() -> None: "markers": 'platform_machine == "x86_64"', }, "~3.7", - 'platform_machine == "x86_64" and python_version == "3.7" and' - ' sys_platform == "linux"', + ( + 'platform_machine == "x86_64" and python_version == "3.7" and' + ' sys_platform == "linux"' + ), ), ( {"python": ">=3.7", "markers": 'python_version < "4.0"'},