Skip to content

Commit

Permalink
Merge pull request #337 from giffels/fix/black-format-changes
Browse files Browse the repository at this point in the history
Fix black format changes
  • Loading branch information
giffels authored Feb 7, 2024
2 parents 87756ab + 8210af3 commit 43c9111
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.1.1
hooks:
- id: black
args:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. Created by changelog.py at 2024-01-23, command
.. Created by changelog.py at 2024-02-05, command
'/Users/giffler/.cache/pre-commit/repoecmh3ah8/py_env-python3.12/bin/changelog docs/source/changes compile --categories Added Changed Fixed Security Deprecated --output=docs/source/changelog.rst'
based on the format of 'https://keepachangelog.com/'
#########
CHANGELOG
#########

[Unreleased] - 2024-01-23
[Unreleased] - 2024-02-05
=========================

Fixed
Expand Down
2 changes: 1 addition & 1 deletion tardis/adapters/sites/fakesite.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def resource_status(
seconds=resource_boot_time
) and resource_attributes.get(
"resource_status",
ResourceStatus.Booting
ResourceStatus.Booting,
# When cobald is restarted, "resource_status" is not set. Since this is a
# FakeAdapter, when can safely start the cycle again by assuming
# ResourceStatus.Booting and let TARDIS manage the drone's life cycle
Expand Down
3 changes: 1 addition & 2 deletions tardis/utilities/asyncbulkcall.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class BulkCommand(Protocol[T, R]):
:py:class:`Exception` means that all tasks failed with that :py:class:`Exception`.
"""

async def __call__(self, *__tasks: T) -> Optional[Iterable[R]]:
...
async def __call__(self, *__tasks: T) -> Optional[Iterable[R]]: ... # noqa E704


class AsyncBulkCall(Generic[T, R]):
Expand Down
6 changes: 3 additions & 3 deletions tests/agents_t/test_batchsystemagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def test_machine_meta_data_translation_mapping(self):
return_value=AttributeDict(Cores=1, Memory=1024, Disk=1024)
)

type(
self.batch_system_adapter
).machine_meta_data_translation_mapping = machine_meta_data_translation_mock
type(self.batch_system_adapter).machine_meta_data_translation_mapping = (
machine_meta_data_translation_mock
)

self.assertEqual(
AttributeDict(Cores=1, Memory=1024, Disk=1024),
Expand Down

0 comments on commit 43c9111

Please sign in to comment.