-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
DOCs: linter corrections to Function class #446
Conversation
- improve docstrings - remove useless comments - convert a few variables to snake_case to improve readability - better exception capture
- pylint C0200 - use enumerate instead of range(len(x)) - pylint W0201 - attribute-defined-outside-init - pylint W0102 - dangerous-default-value - pylint C3001 - unnecessary-lambda-assignment - pylint W1514 - better to specify an encoding when opening file - pylint R1719 - simplifiable-if-expression
- improve more variables names - no more else after break statement
Should we add a page in the documentation describing how to use the linters during the development phases? |
I prefer If |
I understand that you prefer one option above other. But I think we should try to be as intuitive as possible with the methods names. If rocketpy follows snake_case, then it is easier to imagine that te function is called Alternatively, we could also write |
- Update Python version in the .pylintrc file - fix variable initialization comment - changes matrix to sys_coeffs
All good now. Just waiting for @MateusStano 's feedback regarding my recent changes and further discussions on the |
As discussed, we are going adopt the approach of raising deprecation and renaming the function to snake case. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #446 +/- ##
==========================================
Coverage ? 68.92%
==========================================
Files ? 55
Lines ? 8961
Branches ? 0
==========================================
Hits ? 6176
Misses ? 2785
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The |
Pull request type
Checklist
black rocketpy/ tests/
) has passed locallypytest --runslow
) have passed locallyCurrent behavior
Function
class is hard to read: code is mostly dated from 4 years ago, some list operations takes several code linesNew behavior
.flake8
and.pylintrc
files to set the configuration for our project. Ideally, this should beisort
andmypy
integration.Breaking change
Additional information