Skip to content

[internal]: Adopting/following more ruff complexity rules #2376

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

Open
dangotbanned opened this issue Apr 12, 2025 · 0 comments
Open

[internal]: Adopting/following more ruff complexity rules #2376

dangotbanned opened this issue Apr 12, 2025 · 0 comments
Labels

Comments

@dangotbanned
Copy link
Member

dangotbanned commented Apr 12, 2025

Related

Description

All of the rules I'm linking have clear examples demonstrating why you'd use them.
The general theme they share is producing smaller and more generic functions/methods/classes.

The bad news is these aren't auto-fixes, but intended as a warning when you've written something that may be difficult for others to follow.

The good news is we can gradually introduce them via per-file-ignores.
See altair/pyproject.toml for an example of enabling a rule group for a single module.

Rules

Note

Feel free to add to these if you find any others

Adopt the following ignored rules:

Possibly adopt these preview rules:

More strictly follow rules we frequently # noqa: ...

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

No branches or pull requests

1 participant