Skip to content

Commit 2be2a2d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent de9567a commit 2be2a2d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/conftest.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,15 @@ def packages_path():
105105

106106

107107
def is_setuptools(package_path):
108-
if package_path.joinpath("setup.py").is_file():
108+
if package_path.joinpath('setup.py').is_file():
109109
return True
110-
pyproject = package_path / "pyproject.toml"
110+
pyproject = package_path / 'pyproject.toml'
111111
try:
112-
with pyproject.open("rb") as f:
112+
with pyproject.open('rb') as f:
113113
pp = tomllib.load(f)
114114
except (FileNotFoundError, ValueError):
115115
return True
116-
return "setuptools" in pp.get("build-system", {}).get("build-backend", "setuptools")
117-
116+
return 'setuptools' in pp.get('build-system', {}).get('build-backend', 'setuptools')
118117

119118

120119
def generate_package_path_fixture(package_name):

0 commit comments

Comments
 (0)