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

feat: add ruff-format executor for formatting files #271

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Conversation

lucasvieirasilva
Copy link
Owner

This PR adds a new executor ruff-format that wraps the ruff format command.

Current Behavior

The user needs to create a Nx target with @nxlv/python:run-commands to run the ruff format.

Expected Behavior

The ruff-format should run the ruff format similarly as ruff-check executor, and if the user selects ruff as linter when creating a new python project, the format target needs to automatically added to the project.json

Related Issue(s)

Fixes #269

@lucasvieirasilva lucasvieirasilva merged commit a9b6c97 into main Jan 29, 2025
3 checks passed
Copy link

🎉 This PR is included in version 20.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Add format task (ruff format --check)
1 participant