-
-
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
fixed toml parser ignoring style #156
fixed toml parser ignoring style #156
Conversation
for more information, see https://pre-commit.ci
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## main #156 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 582 589 +7
=========================================
+ Hits 582 589 +7
|
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.
Thank you for opening a pull request. Could you add covering tests, please ?
…stringformatter into bugfix/toml_ignoring_style
@Pierre-Sassoulas Sure thing! Done! Added testing that checks if the style is applied correctly depending on the toml file. Regarding the the added lines marked as not being covered (not implemented error) by definition cannot be covered. |
This comment has been minimized.
This comment has been minimized.
You can add a Could you also take a look at the failing |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
I am not sure why the mypy pre-commit is failing, it fails with error:
which is odd ... since it has been added since python 3.8 (and the fact that the code runs, if the object did not exist it would result in a runtime error): |
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.
LGTM, we need to silence the mypy error if it's passing all the test imo.
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
for more information, see https://pre-commit.ci
This comment has been minimized.
This comment has been minimized.
Hmm, I don't really agree. It seems as if the We should at least try setting the |
I think that's the default right now ? Otherwise the option is |
I have tried several configurations to set the python version and none seems to fix the error.
|
Oh wow, it seems like See https://github.com/python/typeshed/blob/master/stdlib/argparse.pyi. If you want you can open an issue or PR for this against I'll try and get a review of this PR tonight. Thanks for the testing you already did @jspaezp! |
Wow! I did not know about typeshed! Just for reference in the future: It got approved! so in time mypy will work correctly |
Congratulations on your first contribution! 🎉 |
This is also going to impact pylint 😄 |
This comment has been minimized.
This comment has been minimized.
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.
Thank you very much @jspaezp for all the work here.
Sadly this PR unearthed another issue within the tool that (after being addressed) will break the current test. I have given some pointers to making a new test. If you need any help please let me know!
This comment has been minimized.
This comment has been minimized.
tests/data/config/valid_toml_numpydoc/test_package/numpydoc_style.py
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
According to the primer, this change has no effect on the checked open source code. 🤖🎉 |
Thanks @jspaezp 😄 |
Closes #155