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 flake8 B909 checks #347

Closed
wants to merge 2 commits into from
Closed
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 @@ -11,7 +11,7 @@ repos:
args:
- --target-version=py38
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/Matterminers/dev-tools
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-04-16, command
.. Created by changelog.py at 2024-04-25, 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-04-16
[Unreleased] - 2024-04-25
=========================

Fixed
Expand Down
2 changes: 1 addition & 1 deletion tardis/adapters/sites/moab.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def showq(
for queue in xml_jobs_list:
queue_jobs_list = queue.getElementsByTagName("job")
for line in queue_jobs_list:
moab_resource_status[line.attributes["JobID"].value] = {
moab_resource_status[line.attributes["JobID"].value] = { # noqa B909
"JobID": line.attributes["JobID"].value,
"State": line.attributes["State"].value,
}
Expand Down
4 changes: 2 additions & 2 deletions tardis/plugins/auditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def __init__(self):
self._resources = {}
self._components = {}
for site in config.Sites:
self._resources[site.name] = {}
self._components[site.name] = {}
self._resources[site.name] = {} # noqa B909
self._components[site.name] = {} # noqa B909
for machine_type in getattr(config, site.name).MachineTypes:
self._resources[site.name][machine_type] = {}
self._components[site.name][machine_type] = {}
Expand Down
Loading