X Tutup
Skip to content

chore: add ruff format --check#5774

Merged
youknowone merged 2 commits intoRustPython:mainfrom
rexledesma:rl/add-ruff-format
May 12, 2025
Merged

chore: add ruff format --check#5774
youknowone merged 2 commits intoRustPython:mainfrom
rexledesma:rl/add-ruff-format

Conversation

@rexledesma
Copy link
Contributor

@rexledesma rexledesma commented May 8, 2025

Depends on #5773.

Summary

Add a ruff format step for the Python files generated by contributors.

Main file to look at here is 4f14a31#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd.

Note that we ignore formating syntax_*.py and badsyntax_*.py files as they are specifically testing non standardized code formating.

Test Plan

RustPython on  rl/add-ruff-format via 🐍 v3.13.2 via 🦀 v1.86.0 
❯ uvx --from "ruff==0.11.8" ruff format --check
217 files already formatted

@rexledesma rexledesma force-pushed the rl/add-ruff-format branch from 6f0b586 to 9d8c46a Compare May 11, 2025 14:50
Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@youknowone youknowone merged commit 4e2e0b4 into RustPython:main May 12, 2025
11 checks passed
hbina pushed a commit to hbina/RustPython that referenced this pull request May 14, 2025
* chore: add `ruff format --check`

* fix tests
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.

3 participants

X Tutup