Skip to content

Commit

Permalink
Update dev-requirement 'black==24.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
soininen committed Apr 30, 2024
1 parent 2e853ed commit 46a0b0c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black == 19.3b0
black == 24.4.2
pre-commit == 2.0.1
pylint >= 2.3.0
-r "docs/requirements.txt"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ ignore_errors = true

[tool.black]
line-length = 120
exclude = '\.git'
exclude = '\.git|version.py'
1 change: 1 addition & 0 deletions spine_engine/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def _executable(name):
# Julia
JULIA_EXECUTABLE = _executable("julia")


# Python
def is_frozen():
"""Checks if we are currently running as frozen bundle.
Expand Down
2 changes: 1 addition & 1 deletion spine_engine/jumpster.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class JumpsterEvent(DefinitionBase):
def __init__(self, event_type, item_name, direction, **kwargs):
super().__init__(item_name, direction)
self.event_type = event_type
for (key, value) in kwargs.items():
for key, value in kwargs.items():
setattr(self, key, value)


Expand Down
8 changes: 5 additions & 3 deletions spine_engine/spine_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,11 @@ def compute_fn(inputs):
r.metadata["db_server_manager_queue"] = self._db_server_manager_queue
yield Output(value=resources)
yield Finalization(
item_finish_state=ItemExecutionFinishState.SUCCESS
if self._execution_permits[item_name]
else ItemExecutionFinishState.EXCLUDED
item_finish_state=(
ItemExecutionFinishState.SUCCESS
if self._execution_permits[item_name]
else ItemExecutionFinishState.EXCLUDED
)
)

return SolidDefinition(item_name=item_name, direction=ED.BACKWARD, input_defs=[], compute_fn=compute_fn)
Expand Down
6 changes: 3 additions & 3 deletions spine_engine/utils/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def serialize_url(url, project_dir):
serialized = {
"type": "file_url",
"relative": is_relative,
"path": os.path.relpath(path, project_dir).replace(os.sep, "/")
if is_relative
else path.replace(os.sep, "/"),
"path": (
os.path.relpath(path, project_dir).replace(os.sep, "/") if is_relative else path.replace(os.sep, "/")
),
"scheme": parsed.scheme,
}
if parsed.query:
Expand Down

0 comments on commit 46a0b0c

Please sign in to comment.