Skip to content

Commit bbd5953

Browse files
committed
Bump black to latest version
1 parent b40d6e4 commit bbd5953

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
hooks:
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 22.3.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/PyCQA/flake8

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Unreleased
1111

1212
* Log transient connection and timeout errors as warnings to reduce log noise.
1313

14+
* Upgraded ``black`` to ``25.1.0```.
15+
1416
2.46.0 (2025-03-17)
1517
-------------------
1618

crate/operator/create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ def get_statefulset_crate_command(
516516
elif config.CLOUD_PROVIDER == CloudProvider.GCP:
517517
url = "http://169.254.169.254/computeMetadata/v1/instance/zone" # noqa
518518
# projects/<account-id>/zones/us-central1-a
519-
settings[
520-
"-Cnode.attr.zone"
521-
] = f"$(curl -s '{url}' -H 'Metadata-Flavor: Google' | awk -F'/' '{{print $NF}}')" # noqa
519+
settings["-Cnode.attr.zone"] = (
520+
f"$(curl -s '{url}' -H 'Metadata-Flavor: Google' | awk -F'/' '{{print $NF}}')" # noqa
521+
)
522522

523523
if cluster_settings:
524524
for k, v in cluster_settings.items():

crate/operator/kube_auth.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ async def login_via_kubernetes_asyncio(
6565
scheme, token = (
6666
(None, None)
6767
if len(parts) == 0
68-
else (None, parts[0])
69-
if len(parts) == 1
70-
else (parts[0], parts[1])
68+
else (None, parts[0]) if len(parts) == 1 else (parts[0], parts[1])
7169
) # RFC-7235, Appendix C.
7270

7371
# Interpret the k8s_config object for our own minimalistic credentials.

crate/operator/restore_backup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ async def _prepare_cluster_settings(
527527
)
528528
)
529529
patch.status["maxBytesPerSec"] = max_bytes_per_sec
530-
patch.status[
531-
"clusterConcurrentRebalance"
532-
] = cluster_concurrent_rebalance
530+
patch.status["clusterConcurrentRebalance"] = (
531+
cluster_concurrent_rebalance
532+
)
533533
# update the settings during restore operation
534534
await set_cluster_setting(
535535
conn_factory,

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tool.black]
2-
target-version = ['py38']
2+
target-version = ['py313']
3+
line-length = 88
34

45
[build-system]
56
requires = ["setuptools>=58", "wheel", "setuptools_scm>=6.2"]

0 commit comments

Comments
 (0)