diff --git a/pyproject.toml b/pyproject.toml index 51c6a78..f890ab6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ Homepage = "https://github.com/sarugaku/resolvelib" [project.optional-dependencies] lint = [ - "black==23.12.1", + "black~=24.0", "ruff", "isort", "mypy", diff --git a/tests/functional/cocoapods/test_resolvers_cocoapods.py b/tests/functional/cocoapods/test_resolvers_cocoapods.py index a7eee16..10ca562 100644 --- a/tests/functional/cocoapods/test_resolvers_cocoapods.py +++ b/tests/functional/cocoapods/test_resolvers_cocoapods.py @@ -233,12 +233,14 @@ def get_dependencies(self, candidate): @pytest.fixture( params=[ - pytest.param( - os.path.join(CASE_DIR, n), - marks=pytest.mark.xfail(strict=True, reason=XFAIL_CASES[n]), + ( + pytest.param( + os.path.join(CASE_DIR, n), + marks=pytest.mark.xfail(strict=True, reason=XFAIL_CASES[n]), + ) + if n in XFAIL_CASES + else os.path.join(CASE_DIR, n) ) - if n in XFAIL_CASES - else os.path.join(CASE_DIR, n) for n in CASE_NAMES ], ids=[n[:-5] for n in CASE_NAMES], diff --git a/tests/functional/python/py2index.py b/tests/functional/python/py2index.py index fc6a0bc..710831f 100644 --- a/tests/functional/python/py2index.py +++ b/tests/functional/python/py2index.py @@ -29,15 +29,7 @@ import re import sys import urllib.parse -from typing import ( - Dict, - Iterable, - Iterator, - List, - NamedTuple, - Tuple, - Union, -) +from typing import Dict, Iterable, Iterator, List, NamedTuple, Tuple, Union import html5lib import packaging.requirements diff --git a/tests/functional/python/test_resolvers_python.py b/tests/functional/python/test_resolvers_python.py index 0847354..9e4cff1 100644 --- a/tests/functional/python/test_resolvers_python.py +++ b/tests/functional/python/test_resolvers_python.py @@ -138,12 +138,14 @@ def get_dependencies(self, candidate): @pytest.fixture( params=[ - pytest.param( - os.path.join(CASE_DIR, n), - marks=pytest.mark.xfail(strict=True, reason=XFAIL_CASES[n]), + ( + pytest.param( + os.path.join(CASE_DIR, n), + marks=pytest.mark.xfail(strict=True, reason=XFAIL_CASES[n]), + ) + if n in XFAIL_CASES + else os.path.join(CASE_DIR, n) ) - if n in XFAIL_CASES - else os.path.join(CASE_DIR, n) for n in CASE_NAMES ], ids=[n[:-5] for n in CASE_NAMES],