-
Notifications
You must be signed in to change notification settings - Fork 80
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
Invalid removal of valid lines between classes #156
Comments
@fmigneault I can tell you that it's caused by the in-line comment. If you place the comment on the line before or after |
This is odd. There are other similar in-line comment on the last property of the class here: But these do not trigger lines to be removed between classes as in the original case shown. |
See also #165. The problem seems to be the result of using |
@fmigneault tag v1.6.1-rc1 should have the fix you need if you're interested in giving it a try before I officially release v1.6.1. |
The original issue seems fixed. However, there was the following new item. def test_wps3_process_step_io_data_or_href():
"""
Validates that 'data' literal values and 'href' file references are both handled as input for workflow steps
corresponding to a WPS-3 process.
"""
# [... more items ...]
def mock_wps_request(method, url, *_, **kwargs):
nonlocal test_reached_parse_inputs
-
method = method.upper()
# [...] (full example: https://github.com/crim-ca/weaver/blob/57555a56172539011721c9c7a4cacb9a41dca2ff/tests/processes/test_wps3_process.py#L14) |
@fmigneault v1.6.1-rc2 should fix the new problem without, hopefully, introducing any more. |
@weibullguy |
Using
docformatter==1.5.1
(not a problem in1.5.0
), the tool check/fixes (according to options) the following snippet of code (i.e.: it proposes to remove the 2 lines betweenAcceptHeader
andAcceptLanguageHeader
classes).I'm adding more classes in the below snippet in case more "context" might be important.
The full code is here: https://github.com/crim-ca/weaver/blob/master/weaver/wps_restapi/swagger_definitions.py#L495-L520
There are a lot more similar class definitions in this file and across the code base, but
docformatter
keeps tripping over only these specific lines for some reason I cannot figure out.The text was updated successfully, but these errors were encountered: