-
Notifications
You must be signed in to change notification settings - Fork 11
chore: add Ruff configuration and apply formating and linting changes #127
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: master
Are you sure you want to change the base?
Conversation
|
This should solve #119 by using |
|
Hmm, actually, I am unsure if these changes will be compatible with all the versions of Python being supported. |
djordon
left a comment
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.
Largely looks good. I just have one question about the latex related changes in some of the docstring changes.
| def add_loss(self, qedge, *args, **kwargs): # qedge[2] is the edge_index of the queue | ||
| def add_loss( | ||
| self, qedge, *args, **kwargs | ||
| ): # qedge[2] is the edge_index of the queue |
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.
Can we move this comment to the next line?
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.
Actually, no need to make this change.
| -------- | ||
| Suppose you wanted to model the arrival process as a Poisson | ||
| random measure with rate function :math:`r(t) = 2 + \sin( 2\pi t)`. | ||
| random measure with rate function :math:`r(t) = 2 + \\sin( 2\\pi t)`. |
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.
I'm not sure that these latex docstring changes are correct. Things seem to render just fine on readthedocs.io.
ruff format .andruff check --fixfrom the root of the project 'after' having added theruff.tomlfile.