You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we are using ruff, the idea is that we add more rules to ruff linter in separate PRs since there are a lot of fixes to do (maybe create a separate issues for that) . e.g.,
@Neema-Joju If the issues are easy to fix, I think you can open a PR adding rule "A" with the actual fixes so we can get more coverage from Ruff Linter.
@emdneto Ok. I'll create separate pull requests for different rules so, it will be easy for everyone to follow. As I work along I'll fix the issues that I can.
@Kludex, sure. The description is just a list of rules to see what's more suitable for us; we don't need to implement all of them. Would you be open to sending a PR adding the rules?
About pylint, I think we can drop pylint at some point when we are sure ruff is enough and we don't have pylint CI failing for a while
Activity
Neema-Joju commentedon Oct 17, 2024
Hi,
I am an Outreachy applicant.
May I work on this issue?
Neema-Joju commentedon Oct 21, 2024
Thank you for assigning me this task.
When I added

ruffruleA, I ranruff check .as well. Should I fix them or do I keep adding the rules?emdneto commentedon Oct 21, 2024
@Neema-Joju If the issues are easy to fix, I think you can open a PR adding rule "A" with the actual fixes so we can get more coverage from Ruff Linter.
Neema-Joju commentedon Oct 22, 2024
@emdneto Ok. I'll create separate pull requests for different rules so, it will be easy for everyone to follow. As I work along I'll fix the issues that I can.
Kludex commentedon Nov 22, 2024
The list of rules in the description are huge.
Can we copy the most used rules from more modern projects from the ecosystem?
Pydantic: https://github.com/pydantic/pydantic/blob/f9f4aee799ceb65b25b2f95a3c030b7df2e929d1/pyproject.toml#L190-L208
FastAPI: https://github.com/fastapi/fastapi/blob/8c29eaec25b3add7106e1cbfe0c217e4bbd6f187/pyproject.toml#L188-L197
Starlette: https://github.com/encode/starlette/blob/ad7ff0800de563528691d26dcccf3c055cab0571/pyproject.toml#L56-L65
Also, related, but we can move away from pylint, like all modern projects? Since most of the rules are pedantic/redundant?
emdneto commentedon Nov 22, 2024
@Kludex, sure. The description is just a list of rules to see what's more suitable for us; we don't need to implement all of them. Would you be open to sending a PR adding the rules?
About pylint, I think we can drop pylint at some point when we are sure ruff is enough and we don't have pylint CI failing for a while
thogar-computer commentedon Apr 2, 2025
Happy to look at this at KubeCon 2025
Enable ruff pyupgrade (UP) lint rules (#4940)
Enable ruff pyupgrade (UP) lint rules (open-telemetry#4940)
2 remaining items
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule
chore: enable PIE (flake8-pie) ruff rule