-
Notifications
You must be signed in to change notification settings - Fork 28
Switched to ruff for linting/formatting, added ruff CI, added CONTIRBUTING.md #1034
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
base: develop
Are you sure you want to change the base?
Conversation
|
Sorry for my delayed answers, I'm actually preparing for my next exam.... The PR is looking good to me, if I interpreted it correctly, we will have a failed runner as soon as a linting rule matches, right? I would suggest adding a short tutorial, maybe a contributor reader as suggested by GitHub, for adding lint8ng instructions. Say, a lint8ng rule can be executed per error code. What do you think? |
yes, correct
Where should I put the instructions? In a "Contributing" section in the README or in a separate |
|
COnTRIBUTING.md should be the way to go I think as it is then separated and better structured. Thanks for your help and support :-)Von meinem iPhone gesendetAm 11.11.2025 um 15:44 schrieb Lorenzo IN3HBB (as3ii) ***@***.***>:as3ii left a comment (DJ2LS/FreeDATA#1034)
The PR is looking good to me, if I interpreted it correctly, we will have a failed runner as soon as a linting rule matches, right?
yes, correct
I would suggest adding a short tutorial, maybe a contributor reader as suggested by GitHub, for adding lint8ng instructions. Say, a lint8ng rule can be executed per error code. What do you think?
Where should I put the instructions? In a "Contributing" section in the README or in a separate CONTRIBUTING.md?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
|
Regarding fixing of PEP errors reported by ruff - I'd like to review the changes, so what about merging this one into develop, and opening separate PRs for each fix, e.g. "Fixing PEP F541". I appreciate the work on linting, but I'm still carefully with auto fixes. |
|
@DJ2LS I started manually fixing E4 rules, and now i have a question:
Editing Same for PS. ruff's auto-fixes covers only simple and safe cases (testing and manual review of the changes must be done in any case) |
|
Regarding lines 3-5, not sure anymore tbh, but pip is not that critical at the moment. Maybe there is a better way combined with new project toll file |
|
Feel free using auto fixes, my intention is just keeping reviewing easier by not being overload by too many changes 🙂 |
|
Regarding the sys path stuff, if you have an idea how to fix it, then feel free doing this, I won't have much time at the moment. I'm always open to learn something new and improving my skills, so I'm looking forward to your suggestions 👍 |
the main issue here is avoiding regressions, I don't know what was the original issue and how to replicate it to test if the alternative solution works as expected. Applying an alternative solution an waiting for any complaints is a possibility that I don't know if you want to take |
Sounds good to me, because the pip package isn't "officially" released. I did this to register and save the package name. So in my opinion we can remove this part of code and optimize the pip build process, waiting for feedback then if problems occur. |
This applies mostly the same rules that `black` used. This commit should not have introduced any logical or functional changes, only fixing style consistency
See: https://peps.python.org/pep-0008/#imports Here absolute imports have been used to avoid the error `ImportError: attempted relative import with no known parent package`.
Ruff's rule F401
Now all F4 rules are fixed
|
Sadly this is quite a big PR, mainly due to 66b2c6b (first run of the formatter), luckily that commit don't need any in-depth review or testing. The main commit I'm in doubt about is 90a1e7c. |
|
hard to test everything - suggestion: if tests are passing and functionality is given without errors on a "real world testing" we can approve this. |
If this ruff settings is fine for you, I'll start fixing all the issues reported by ruff, adding them as new commits in this PR
Closes #1020