-
Notifications
You must be signed in to change notification settings - Fork 761
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
ci: update lints Ruff & docformatter #3130
Conversation
b6fe800
to
848c646
Compare
I do think that the stile check is related, but anyway would be good to update Black (sending PR #3131) so we better see if it is related 🐿️ |
not sure what Black does not like:
|
@Borda unrelated, can you kindly send me an email kashif.rasul@gmail.com I wanted to ask you something about lightning? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Borda! Some comments are inline
r"""Zero Inflated Beta distribution as in Raydonal Ospina, Silvia L.P. | ||
Ferrari: Inflated Beta Distributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some docstrings are changed to have a newline after the quote symbols, but this change does the opposite: is this because it's a raw string here?
src/gluonts/nursery/robust-mts-attack/pts/modules/gaussian_diffusion.py
Outdated
Show resolved
Hide resolved
src/gluonts/nursery/tsbench/src/tsbench/evaluations/tracking/job.py
Outdated
Show resolved
Hide resolved
src/gluonts/nursery/tsbench/src/tsbench/recommender/utils/pareto.py
Outdated
Show resolved
Hide resolved
@lostella, thank you for your detailed read and for pointing out all the issues... I will try to address them I think that Ruff's rule D could help here |
@lostella, do you have any suggestions on what we should do with the remaining cases? 🦩 |
@Borda just one comment then this can go in 🚀 |
@lostella committed your suggestion, thx :) |
@lostella hope all is fine now, and with this resolved, I could finish the other PR 🦩 could you pls replace |
@lostella, how are you doing? mind have look :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🚀 Thanks @Borda (especially for the patience 🙂)
*Issue #, if available:* `dofformatter` gave a false positive signal; it has lots of issues, but as `--check` was missing, it just fixed without any real code change and so passed green even if it failed, see for example https://github.com/awslabs/gluonts/actions/runs/7975893111/job/21775154024?pr=3130 *Description of changes:* validation of the actual Ruff & Docfroatter on the latest codebase **Please tag this pr with at least one of these labels to make our release process faster:** this is just fixing the actual linting issue, but the better and ext step shall be awslabs#3111 cc: @jaheba @kashif @lostella --------- Co-authored-by: Lorenzo Stella <lorenzostella@gmail.com>
Issue #, if available:
dofformatter
gave a false positive signal; it has lots of issues, but as--check
was missing, it just fixed without any real code change and so passed green even if it failed, see for example https://github.com/awslabs/gluonts/actions/runs/7975893111/job/21775154024?pr=3130Description of changes:
validation of the actual Ruff & Docfroatter on the latest codebase
Please tag this pr with at least one of these labels to make our release process faster:
this is just fixing the actual linting issue, but the better and ext step shall be #3111
cc: @jaheba @kashif @lostella