Skip to content

Commit 42a6f2f

Browse files
committed
Ruff linting
1 parent 339eb85 commit 42a6f2f

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

scripts/generate_connection_stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def create_definition(name, method) -> str:
7171
return definition
7272

7373
def create_overloaded_definition(name, method) -> str:
74-
return "@overload\n{}".format(create_definition(name, method))
74+
return f"@overload\n{create_definition(name, method)}"
7575

7676
# We have "duplicate" methods, which are overloaded.
7777
# We keep note of them to add the @overload decorator.

scripts/generate_connection_wrapper_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pathlib import Path
44

55
# Requires `python3 -m pip install cxxheaderparser pcpp`
6-
from get_cpp_methods import ConnectionMethod, get_methods, ReturnType
6+
from get_cpp_methods import ConnectionMethod, ReturnType, get_methods
77

88
os.chdir(os.path.dirname(__file__))
99

scripts/generate_connection_wrapper_stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create_definition(name, method) -> str:
8787
return definition
8888

8989
def create_overloaded_definition(name, method) -> str:
90-
return "@overload\n{}".format(create_definition(name, method))
90+
return f"@overload\n{create_definition(name, method)}"
9191

9292
# We have "duplicate" methods, which are overloaded.
9393
# We keep note of them to add the @overload decorator.

tests/fast/test_pypi_cleanup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from duckdb_packaging.pypi_cleanup import ( # noqa: E402
1717
AuthenticationError,
18+
CleanMode,
1819
CsrfParser,
1920
PyPICleanup,
2021
PyPICleanupError,
@@ -25,7 +26,7 @@
2526
session_with_retries,
2627
setup_logging,
2728
validate_arguments,
28-
validate_username, CleanMode,
29+
validate_username,
2930
)
3031

3132

tests/fast/test_versioning.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
pep440_to_git_tag,
1919
)
2020
from duckdb_packaging.setuptools_scm_version import ( # noqa: E402
21-
_bump_dev_version, _tag_to_version, forced_version_from_env, version_scheme
21+
_bump_dev_version,
22+
_tag_to_version,
23+
forced_version_from_env,
24+
version_scheme,
2225
)
2326

2427

0 commit comments

Comments
 (0)