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

Add mccabe setting to flake8 #63

Merged
merged 5 commits into from
Nov 9, 2022

Conversation

baco
Copy link
Contributor

@baco baco commented Aug 3, 2021

Flake8 can also wrap mccabe complexity linter. In order to support those flags, added the corresponding configuration key to flake8 plugin in Python LSP server.

If such option is not available mccabe linter is never invoked, because default value for mccabe threshold in flake8 is -1 which means “deactivated”

@doolio
Copy link
Contributor

doolio commented Nov 8, 2022

@ccordoba12 any chance this could be merged?

@ccordoba12
Copy link
Member

Sorry, I missed this one completely. @baco, do you have time to fix the merge conflict? Or do you prefer for me to do it?

@baco
Copy link
Contributor Author

baco commented Nov 8, 2022

@ccordoba12 I'll look into it later today :-)

@baco
Copy link
Contributor Author

baco commented Nov 8, 2022

@ccordoba12 There, I've solved the conflict with the branch

@ccordoba12 ccordoba12 added this to the v1.7.0 milestone Nov 9, 2022
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for your contribution @baco!

@ccordoba12 ccordoba12 merged commit 2e3e4b4 into python-lsp:develop Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants