Skip to content

Commit 69cc744

Browse files
committed
Ruff format
1 parent 42a6f2f commit 69cc744

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

duckdb_packaging/_versioning.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def strip_post_from_version(version: str) -> str:
148148

149149

150150
def get_git_describe(
151-
repo_path: Optional[pathlib.Path] = None, since_major: bool = False, since_minor: bool = False # noqa: FBT001
151+
repo_path: Optional[pathlib.Path] = None,
152+
since_major: bool = False,
153+
since_minor: bool = False, # noqa: FBT001
152154
) -> Optional[str]:
153155
"""Get git describe output for version determination.
154156

duckdb_packaging/build_backend.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ def _read_duckdb_long_version() -> str:
133133
return _version_file_path().read_text(encoding="utf-8").strip()
134134

135135

136-
def _skbuild_config_add(
137-
key: str, value: Union[list, str], config_settings: dict[str, Union[list[str], str]]
138-
) -> None:
136+
def _skbuild_config_add(key: str, value: Union[list, str], config_settings: dict[str, Union[list[str], str]]) -> None:
139137
"""Add or modify a configuration setting for scikit-build-core.
140138
141139
This function handles adding values to scikit-build-core configuration settings,

duckdb_packaging/pypi_cleanup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ class CleanMode(Enum):
193193
LIST_ONLY = 1
194194
DELETE = 2
195195

196+
196197
class PyPICleanup:
197198
"""Main class for performing PyPI package cleanup operations."""
198199

duckdb_packaging/setuptools_scm_version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ def version_scheme(version: _VersionObject) -> str:
5858
msg = f"Failed to bump version: {e}"
5959
raise RuntimeError(msg)
6060

61+
6162
def _tag_to_version(tag: str) -> str:
6263
"""Bump the version when we're on a tag."""
6364
major, minor, patch, post, rc = parse_version(tag)
6465
return format_version(major, minor, patch, post=post, rc=rc)
6566

67+
6668
def _bump_dev_version(base_version: str, distance: int) -> str:
6769
"""Bump the given version."""
6870
if distance == 0:

scripts/generate_connection_stubs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def create_arguments(arguments) -> list:
5555
result.append(argument)
5656
return result
5757

58-
5958
def create_definition(name, method) -> str:
6059
definition = f"def {name}("
6160
arguments = ["self"]

tests/fast/test_pypi_cleanup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Run with: python -m pytest test_pypi_cleanup.py -v
55
"""
6+
67
import logging
78
import os
89
from unittest.mock import Mock, patch
@@ -180,7 +181,9 @@ def cleanup_dryrun_max_0(self) -> PyPICleanup:
180181

181182
@pytest.fixture
182183
def cleanup_max_2(self) -> PyPICleanup:
183-
return PyPICleanup("https://test.pypi.org/", CleanMode.DELETE, 2, username="<USERNAME>", password="<PASSWORD>", otp="<OTP>")
184+
return PyPICleanup(
185+
"https://test.pypi.org/", CleanMode.DELETE, 2, username="<USERNAME>", password="<PASSWORD>", otp="<OTP>"
186+
)
184187

185188
def test_determine_versions_to_delete_max_2(self, cleanup_dryrun_max_2):
186189
start_state = {

0 commit comments

Comments
 (0)