Skip to content

Conversation

@okurz
Copy link
Member

@okurz okurz commented Dec 5, 2025

No description provided.

okurz added 30 commits December 3, 2025 10:59
"shellcheck" itself is still having an explicit rule as it must exclude
test files.
…pecific exception

Replaced print statements with logging.info for better output management.
Replaced generic 'except Exception' with 'except AttributeError' for more specific error handling.

fixup logging get_unused_machines
…tion handling

* Added 'from __future__ import annotations', 'from pathlib import
  Path', and 'from typing import Optional' imports.
* Added type hints to all method arguments and return values.
* Replaced 'os.path.join' with 'Path(...).joinpath(...)'
* Replaced generic 'Exception' with 'requests.HTTPError' for more
  specific exception handling.
* Refactored the 'RacktablesObject.from_path' method to avoid blind
  exception catching inside a loop, addressing S110 and BLE001 rules.
* Fixed E501 line length issues.
* Replaced all print statements with logging.info for better output
  management.
* Replaced subprocess.call with subprocess.run for better error
  handling.
* Added noqa: S603 to suppress security warnings, as the command input
  is trusted.
* Replaced os.path.join with pathlib.Path (PTH118)
* Added timeout to requests calls (S113)
* Refactored the loop for populating 'machines_to_power_on' to use
  list.extend and a list comprehension.
* Add missing copyright
okurz added 14 commits December 3, 2025 14:16
Modified the  function within
to accept arbitrary keyword arguments (). This resolves the
caused by  passing unexpected arguments to the side effect function.
…common_failures

Adjusted the argument signature of  to match the number of arguments passed by the decorators.
This resolves  issues in .
Also adding a "RUNNER" make variable that defaults to "uv run" but can
also be overwritten, e.g. to just an empty string to use the current
Python environment.
Reformatted long string assignments in the  function to adhere to the 120-character line length limit.
This addresses the E501 style warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant