Skip to content

style: apply ruff format to source and test files #60

style: apply ruff format to source and test files

style: apply ruff format to source and test files #60

Triggered via pull request August 18, 2026 07:44
Status Success
Total duration 14s
Artifacts

auto-code-review.yml

on: pull_request
code-review  /  Automated code review
10s
code-review / Automated code review
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
ruff (SIM108): src/configdrift/cli.py#L596
src/configdrift/cli.py:596:21: SIM108 Use ternary operator `str_v = ("true" if v else "false") if isinstance(v, bool) else str(v) if v is not None else ""` instead of `if`-`else`-block help: Replace `if`-`else`-block with `str_v = ("true" if v else "false") if isinstance(v, bool) else str(v) if v is not None else ""`
ruff (E402): src/configdrift/cli.py#L48
src/configdrift/cli.py:48:1: E402 Module level import not at top of file help: Move module level imports to top of file
ruff (E402): src/configdrift/cli.py#L44
src/configdrift/cli.py:44:1: E402 Module level import not at top of file help: Move module level imports to top of file
ruff (I001): src/configdrift/cli.py#L24
src/configdrift/cli.py:24:1: I001 Import block is un-sorted or un-formatted help: Organize imports
ruff (SIM108): src/configdrift/cli.py#L596
src/configdrift/cli.py:596:21: SIM108 Use ternary operator `str_v = ("true" if v else "false") if isinstance(v, bool) else str(v) if v is not None else ""` instead of `if`-`else`-block help: Replace `if`-`else`-block with `str_v = ("true" if v else "false") if isinstance(v, bool) else str(v) if v is not None else ""`
ruff (E402): src/configdrift/cli.py#L48
src/configdrift/cli.py:48:1: E402 Module level import not at top of file help: Move module level imports to top of file
ruff (E402): src/configdrift/cli.py#L44
src/configdrift/cli.py:44:1: E402 Module level import not at top of file help: Move module level imports to top of file
ruff (I001): src/configdrift/cli.py#L24
src/configdrift/cli.py:24:1: I001 Import block is un-sorted or un-formatted help: Organize imports
code-review / Automated code review
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/github-script@v7, actions/setup-python@v5. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/