Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix black format changes #337

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
: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

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.


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
Loading