Skip to content

Commit ff4c2de

Browse files
authored
Merge pull request #950 from hkad98/jkd/chore
Chore bump dev dependencies
2 parents a79f454 + 1743e00 commit ff4c2de

File tree

11 files changed

+20
-29
lines changed

11 files changed

+20
-29
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
args: [ '--maxkb=890' ]
1616
- id: check-case-conflict
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.8.6
18+
rev: v0.9.1
1919
hooks:
2020
# Run the linter.
2121
- id: ruff

fmt-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruff==0.8.6
1+
ruff==0.9.1

gooddata-fdw/gooddata_fdw/filter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ def extract_filters_from_quals(quals: list[Qual], table_columns: dict[str, Colum
115115
new_filter = _qual_to_attribute_filter(filter_entity, qual)
116116
else:
117117
_log_info(
118-
f"extract_filters_from_quals: field_name={qual.field_name} is not attribute, "
119-
f"but {type(filter_entity)}"
118+
f"extract_filters_from_quals: field_name={qual.field_name} is not attribute, but {type(filter_entity)}"
120119
)
121120
if new_filter:
122121
filters.append(new_filter)

gooddata-flexconnect/gooddata_flexconnect/function/flight_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _extract_invocation_payload(
6565
payload = orjson.loads(descriptor.command)
6666
except Exception:
6767
raise ErrorInfo.bad_argument(
68-
"Incorrect FlexConnect function invocation. The invocation payload is " "not a valid JSON."
68+
"Incorrect FlexConnect function invocation. The invocation payload is not a valid JSON."
6969
)
7070

7171
fun = payload.get("functionName")

gooddata-flexconnect/gooddata_flexconnect/function/function_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _check_function(self, fun: type[FlexConnectFunction]) -> str:
5555

5656
if fun.Schema is None:
5757
raise ValueError(
58-
f"FlexConnect function '{fun.Name}' implemented in class {fun.__name__} d" f"oes not specify schema."
58+
f"FlexConnect function '{fun.Name}' implemented in class {fun.__name__} does not specify schema."
5959
)
6060

6161
return fun.Name

gooddata-flight-server/gooddata_flight_server/server/flight_rpc/flight_server.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030
P = ParamSpec("P")
3131

3232

33-
def rpc_decorator() -> (
34-
Callable[
35-
[Callable[Concatenate[Any, pyarrow.flight.ServerCallContext, P], T]],
36-
Callable[Concatenate[Any, pyarrow.flight.ServerCallContext, P], T],
37-
]
38-
):
33+
def rpc_decorator() -> Callable[
34+
[Callable[Concatenate[Any, pyarrow.flight.ServerCallContext, P], T]],
35+
Callable[Concatenate[Any, pyarrow.flight.ServerCallContext, P], T],
36+
]:
3937
def _factory(
4038
fun: Callable[Concatenate[Any, pyarrow.flight.ServerCallContext, P], T],
4139
) -> Callable[Concatenate[Any, pyarrow.flight.ServerCallContext, P], T]:

gooddata-flight-server/gooddata_flight_server/server/flight_rpc/flight_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ def _shutdown_server(self) -> None:
264264
def wait_for_stop(self, timeout: Optional[float] = None) -> bool:
265265
if self._flight_shutdown_thread is None:
266266
# this is really some mess in the caller code.. did not call stop() but tries to wait for it..
267-
raise AssertionError(
268-
"Flight server stop() was not issued yet attempting to wait for " "the server to stop."
269-
)
267+
raise AssertionError("Flight server stop() was not issued yet attempting to wait for the server to stop.")
270268

271269
if self._flight_shutdown_thread.is_alive():
272270
self._flight_shutdown_thread.join(timeout=timeout)

gooddata-sdk/gooddata_sdk/catalog/export/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def _get_exported_content(
7878
Raises:
7979
ValueError: If the server is not able to return a response or if the input values are invalid.
8080
"""
81-
assert (
82-
timeout > 0 and retry > 0 and max_retry > 0
83-
), f"Timeout value '{timeout}' or retry value '{retry}' or max retry value '{max_retry}' is negative."
81+
assert timeout > 0 and retry > 0 and max_retry > 0, (
82+
f"Timeout value '{timeout}' or retry value '{retry}' or max retry value '{max_retry}' is negative."
83+
)
8484
assert timeout > retry, f"Retry value {retry} cannot be higher than timeout value {timeout}"
8585
assert retry <= max_retry, f"Retry value {retry} must be smaller or the same as max retry value {max_retry}"
8686
response = get_func(workspace_id=workspace_id, export_id=export_id, _preload_content=False)

gooddata-sdk/gooddata_sdk/catalog/organization/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def update_identity_provider(self, identity_provider: CatalogIdentityProvider) -
404404
self._entities_api.update_entity_identity_providers(identity_provider.id, identity_provider_document)
405405
except NotFoundException:
406406
raise ValueError(
407-
f"Can not update {identity_provider.id} identity provider. " f"This identity provider does not exist."
407+
f"Can not update {identity_provider.id} identity provider. This identity provider does not exist."
408408
)
409409

410410
# Layout APIs

gooddata-sdk/gooddata_sdk/compute/model/filter.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ def __init__(self, dataset: ObjId, granularity: str, from_shift: int, to_shift:
157157

158158
if granularity not in _GRANULARITY:
159159
raise ValueError(
160-
f"Invalid relative date filter granularity '{granularity}'."
161-
f"It is expected to be one of: {_GRANULARITY}"
160+
f"Invalid relative date filter granularity '{granularity}'. It is expected to be one of: {_GRANULARITY}"
162161
)
163162

164163
self._dataset = dataset
@@ -373,8 +372,7 @@ def __init__(
373372
else:
374373
if not isinstance(values, (int, float)) and len(values) != 1:
375374
raise ValueError(
376-
f"Invalid number of values for {operator}. "
377-
f"Expected single int, float or one-sized list or tuple."
375+
f"Invalid number of values for {operator}. Expected single int, float or one-sized list or tuple."
378376
)
379377
# Convert int to float as AFM model filters accept float values
380378
self._values = (float(values),) if isinstance(values, (int, float)) else values
@@ -456,8 +454,7 @@ def __init__(
456454

457455
if operator not in _RANKING_OPERATORS:
458456
raise ValueError(
459-
f"Invalid ranking filter operator type '{operator}'."
460-
f"It is expected to be one of: {_RANKING_OPERATORS}"
457+
f"Invalid ranking filter operator type '{operator}'. It is expected to be one of: {_RANKING_OPERATORS}"
461458
)
462459

463460
self._metrics = [_extract_id_or_local_id(m) for m in metrics]
@@ -504,6 +501,5 @@ def description(self, labels: dict[str, str], format_locale: Optional[str] = Non
504501
)
505502
metric_ids = [m.id if isinstance(m, ObjId) else m for m in self.metrics]
506503
return (
507-
f"{self.operator.capitalize()} {self.value}{dimensionality_str} "
508-
f"{labels.get(metric_ids[0], metric_ids[0])}"
504+
f"{self.operator.capitalize()} {self.value}{dimensionality_str} {labels.get(metric_ids[0], metric_ids[0])}"
509505
)

0 commit comments

Comments
 (0)