Skip to content
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 similarity checker fails with ignore-signatures option enabled on function with docstring-only body #4649

Merged
merged 5 commits into from
Jul 1, 2021

Conversation

Pierre-Sassoulas
Copy link
Member

Description

Fix a crash caused by the newly introduced ignore-signatures option for similarities checker fails for functions with an empty body with docstring only. Also include some refactor necessary so pre-commit works (trailing whitespace added in report).

Type of Changes

Type
βœ“ πŸ› Bug fix
βœ“ πŸ”¨ Refactoring

Related Issue

Closes #4648

@Pierre-Sassoulas Pierre-Sassoulas added Blocker πŸ™… Blocks the next release Crash πŸ’₯ A bug that makes pylint crash labels Jul 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.9.3 milestone Jul 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title Issue 4648 Fix similarity checker fails with "ignore-signatures" option enabled on function with docstring-only body Jul 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title Fix similarity checker fails with "ignore-signatures" option enabled on function with docstring-only body Fix similarity checker fails with ignore-signatures option enabled on function with docstring-only body Jul 1, 2021
@Pierre-Sassoulas
Copy link
Member Author

@hippo91 fwi, there will be a rebase to do, there will be some change to the similarity checker in 2.9.3 to fix a crash.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 92.04% when pulling 65ea276 on Pierre-Sassoulas:issue-4648 into 2129086 on PyCQA:main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker πŸ™… Blocks the next release Crash πŸ’₯ A bug that makes pylint crash
Projects
None yet
2 participants