Skip to content

Commit 75965c6

Browse files
authored
[ruff] 0.1.1 -> 0.1.7 (#18531)
## Summary & Motivation Internal companion PR: dagster-io/internal#7638 Bump ruff from 0.1.1 to 0.1.7. This fixes bugs, has a few performance improvements, and takes the formatter out of alpha. The vast majority of changes are from a change to the formatter that adds a trailing comma in multiline parameter specifications. ## How I Tested These Changes `make ruff`
1 parent 5a392f8 commit 75965c6

File tree

46 files changed

+71
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+71
-72
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/charliermarsh/ruff-pre-commit
3-
rev: v0.1.1
3+
rev: v0.1.7
44
hooks:
55
- id: ruff
66
args: [--fix, --exit-non-zero-on-fix]

docs/content/concepts/assets/asset-checks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def items():
192192

193193

194194
def make_checks(
195-
check_blobs: Sequence[Mapping[str, str]]
195+
check_blobs: Sequence[Mapping[str, str]],
196196
) -> Sequence[AssetChecksDefinition]:
197197
checks = []
198198
for check_blob in check_blobs:

docs/content/integrations/deltalake/reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ from dagster import (
191191
metadata={"partition_expr": {"date": "time", "species": "species"}},
192192
)
193193
def iris_dataset_partitioned(context) -> pd.DataFrame:
194-
partition = partition = context.partition_key.keys_by_dimension
194+
partition = context.partition_key.keys_by_dimension
195195
species = partition["species"]
196196
date = partition["date"]
197197

examples/docs_snippets/docs_snippets/concepts/assets/asset_checks/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def items():
2020

2121

2222
def make_checks(
23-
check_blobs: Sequence[Mapping[str, str]]
23+
check_blobs: Sequence[Mapping[str, str]],
2424
) -> Sequence[AssetChecksDefinition]:
2525
checks = []
2626
for check_blob in check_blobs:

examples/docs_snippets/docs_snippets/integrations/deltalake/multi_partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_iris_data_for_date(*args, **kwargs):
2626
metadata={"partition_expr": {"date": "time", "species": "species"}},
2727
)
2828
def iris_dataset_partitioned(context) -> pd.DataFrame:
29-
partition = partition = context.partition_key.keys_by_dimension
29+
partition = context.partition_key.keys_by_dimension
3030
species = partition["species"]
3131
date = partition["date"]
3232

helm/dagster/schema/schema/charts/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def create_definition_ref(definition: str, version: str = SupportedKubernetes.V1
5454

5555

5656
def create_json_schema_conditionals(
57-
enum_type_to_config_name_mapping: Dict[Enum, str]
57+
enum_type_to_config_name_mapping: Dict[Enum, str],
5858
) -> List[dict]:
5959
return [
6060
{

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ select = [
231231
]
232232

233233
# Fail if Ruff is not running this version.
234-
required-version = "0.1.1"
234+
required-version = "0.1.7"
235235

236236
[tool.ruff.flake8-builtins]
237237

python_modules/dagster-graphql/dagster_graphql/implementation/fetch_asset_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
def asset_checks_iter(
28-
context: WorkspaceRequestContext
28+
context: WorkspaceRequestContext,
2929
) -> Iterator[Tuple[CodeLocation, ExternalRepository, ExternalAssetCheck]]:
3030
for location, repository in repository_iter(context):
3131
for external_check in repository.external_repository_data.external_asset_checks or []:
@@ -59,7 +59,7 @@ def get_asset_check_execution_statuses_by_id(
5959
planned_execution_runs_by_run_id = {}
6060

6161
def _status_for_execution(
62-
execution: AssetCheckExecutionRecord
62+
execution: AssetCheckExecutionRecord,
6363
) -> AssetCheckExecutionResolvedStatus:
6464
record_status = execution.status
6565

python_modules/dagster-graphql/dagster_graphql/implementation/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _noop(_) -> None:
9292
class ErrorCapture:
9393
@staticmethod
9494
def default_on_exception(
95-
exc_info: Tuple[Type[BaseException], BaseException, TracebackType]
95+
exc_info: Tuple[Type[BaseException], BaseException, TracebackType],
9696
) -> "GraphenePythonError":
9797
from dagster_graphql.schema.errors import GraphenePythonError
9898

@@ -118,7 +118,7 @@ def watch(fn: Callable[[Exception], None]) -> Iterator[None]:
118118

119119

120120
def capture_error(
121-
fn: Callable[P, T]
121+
fn: Callable[P, T],
122122
) -> Callable[P, Union[T, "GrapheneError", "GraphenePythonError"]]:
123123
def _fn(*args: P.args, **kwargs: P.kwargs) -> T:
124124
try:

python_modules/dagster/dagster/_core/container_context/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Process fields shared by container contexts in all environments (docker / k8s / ecs etc.)
2323
def process_shared_container_context_config(
24-
container_context_config: Optional[Mapping[str, Any]]
24+
container_context_config: Optional[Mapping[str, Any]],
2525
) -> Mapping[str, Any]:
2626
shared_container_context = process_config(
2727
SHARED_CONTAINER_CONTEXT_SCHEMA, container_context_config or {}

0 commit comments

Comments
 (0)