fix issue where passing two styles would fail with index error#162
fix issue where passing two styles would fail with index error#162jspaezp wants to merge 4 commits intoDanielNoord:mainfrom
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. |
This comment has been minimized.
This comment has been minimized.
1 similar comment
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.
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.
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.
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. |
This comment has been minimized.
This comment has been minimized.
for more information, see https://pre-commit.ci
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
edf4976 to
c8abbbf
Compare
|
According to the primer, this change has no effect on the checked open source code. 🤖🎉 |
Fixes the first section of:
Closes #160