-
Notifications
You must be signed in to change notification settings - Fork 58
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
Updated linter configs #931
Conversation
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Minimum allowed coverage is Generated by 🐒 cobertura-action against 19ba63c |
What is the problem with shadowing builtins? The flake8-builtins example would be caught by both CI and code review. There are a lot of generic named python builtins and adding a trailing _ to them is just ugly, so we should only do that if there realy is a benefit, which I currently fail to see. |
I guess the real benefit is avoiding confusion and spreading consistency. Shadowing builtins is even worse than shadowing outer scoped variables. It's confusing, linters and static analysis of proper IDEs and other languages nag about it for good reasons. There are about 158 builtins (Python 3.11), I'm sure there's a magnitude of other variable names one can think of. For example, some function arguments named |
# Conflicts: # mula/scheduler/server/server.py # rocky/rocky/scheduler.py
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]>
Signed-off-by: ammar <[email protected]> Co-authored-by: Donny Peeters <[email protected]>
Changes
Enabled and fixed these ruff plugins:
PLC
A
More to enable and fix soon.
Issue link
#784
Code Checklist
Communication
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder.