-
Notifications
You must be signed in to change notification settings - Fork 55
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
Address flake8 rst docstring issues #190
Conversation
Codecov Report
@@ Coverage Diff @@
## main #190 +/- ##
=======================================
Coverage 64.77% 64.77%
=======================================
Files 47 47
Lines 11951 11951
=======================================
Hits 7741 7741
Misses 4210 4210
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -286,7 +286,7 @@ def addPointSet(self, points, ptName, boundTol=1e-10, **kwargs): | |||
boundTol : float, optional | |||
Small absolute deviation by which the airfoil coordinates can exceed the initial | |||
minimum and maximum x coordinates, by default 1e-10. | |||
kwargs | |||
\*\*kwargs |
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 would be surprised if backslash is necessary here
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.
Yes, that was my thought too. However, if removed, the following is generated
RST210 Inline strong start-string without end-string
. There is an open issue on this peterjc/flake8-rst-docstrings#18 and some PR, but not sure why its not merged yet. While escaping is ugly, it works and is consistent with rst. Not sure if there is any other approach at the moment, but any suggestions are welcome.
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 see. I guess I'm fine with this then, even though it is harder to read. The alternative would be to ignore RST210 but that may mask other issues.
Purpose
This PR fixes flake8 RST warnings when
flake8-rst-docstrings
extension enabled.Expected time until merged
Once docs build pass
Type of change
Testing
Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable