Skip to content

Use ruff instead of black for code formatting#1317

Merged
greenbonebot merged 1 commit intomainfrom
use-ruff-for-formatting
Apr 10, 2026
Merged

Use ruff instead of black for code formatting#1317
greenbonebot merged 1 commit intomainfrom
use-ruff-for-formatting

Conversation

@bjoernricks
Copy link
Copy Markdown
Contributor

What

Use ruff instead of black for code formatting

Why

Replace black with ruff format which is a lot faster. Also it reduces the list of required dependencies for the project.

Also Update the Python code for Python >= 3.10 syntax and format all code with ruff.

@bjoernricks bjoernricks requested review from a team as code owners April 10, 2026 07:41
@greenbonebot greenbonebot enabled auto-merge (rebase) April 10, 2026 07:42
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 2a1d127.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

  • uv.lock

@github-actions
Copy link
Copy Markdown

Conventional Commits Report

😢 No conventional commits found.

👉 Learn more about the conventional commits usage at Greenbone.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.23%. Comparing base (01b5864) to head (2a1d127).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1317      +/-   ##
==========================================
- Coverage   98.25%   98.23%   -0.02%     
==========================================
  Files          90       90              
  Lines        6290     6245      -45     
  Branches     1128     1128              
==========================================
- Hits         6180     6135      -45     
  Misses         77       77              
  Partials       33       33              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bjoernricks bjoernricks force-pushed the use-ruff-for-formatting branch from b4ef4d6 to 4a5accf Compare April 10, 2026 07:43
@greenbonebot
Copy link
Copy Markdown
Member

Scanning the following files for hidden unicode:

@bjoernricks bjoernricks force-pushed the use-ruff-for-formatting branch from 4a5accf to b3b5599 Compare April 10, 2026 08:35
Replace black with ruff format which is a lot faster. Also it reduces
the list of required dependencies for the project.

Also Update the Python code for Python >= 3.10 syntax and format all
code with ruff.
@bjoernricks bjoernricks force-pushed the use-ruff-for-formatting branch from b3b5599 to 2a1d127 Compare April 10, 2026 08:38
@greenbonebot greenbonebot merged commit a0ef252 into main Apr 10, 2026
24 of 25 checks passed
@greenbonebot greenbonebot deleted the use-ruff-for-formatting branch April 10, 2026 08:40
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.

4 participants