-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix issue where passing two styles would fail with index error #162
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## main #162 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 591 592 +1
=========================================
+ Hits 591 592 +1
|
Tests fail due to the auto-fix from pre-commit.ci 0c6795b
|
I have been thinking about this as well, but not sure if we should do that as we can create infinite loops. Those trailing whitespaces seem to match the previous indentation. I think that is a bug and should only be a new line without the extra spacing. |
Co-authored-by: Daniël van Noord <[email protected]>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@DanielNoord What about this behavior? Where there is a section separator but no name. I think it makes clear that the parser was not able to assign what is under it to any section and not that it is part of the former.
|
This comment has been minimized.
This comment has been minimized.
|
||
|
||
def sincos(theta): | ||
"""Returns. |
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.
Oh this is becoming more difficult than I hoped. It seems both styles are somewhat incompatible with each other. This is the missing section name, which is now being used as a summary/title...
I'll have to think about this. Perhaps we should fix this in another PR, but I like to check if this is easily fixable.
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.
Well ... if you believe that the issue is that the styles are mutually exclusive in some instances, enforcing that is not hard internally.
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 think the issue that they are currently mutually exclusive. Perhaps we can fix this by changing the order in which formatters are called. I hope to have time somewhere this week to look into this.
Thinking about this ... I started working a branch that does a two pass to check the stability of the tokens. |
Hello @Pierre-Sassoulas! sorry for not closing this issue before (just for the future, it was fixed here #163) |
No problem, thank you for answering :) ! |
I do think this test still fails on Edit: this does indeed still reproduce. |
According to the primer, this change has no effect on the checked open source code. 🤖🎉 |
Fixes the first section of:
Closes #160