Skip to content

Add mccabe setting to flake8#63

Merged
ccordoba12 merged 5 commits into
python-lsp:developfrom
baco:add-mccabe-setting-to-flake8
Nov 9, 2022
Merged

Add mccabe setting to flake8#63
ccordoba12 merged 5 commits into
python-lsp:developfrom
baco:add-mccabe-setting-to-flake8

Conversation

@baco

@baco baco commented Aug 3, 2021

Copy link
Copy Markdown
Contributor

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

doolio commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

@ccordoba12 any chance this could be merged?

@ccordoba12

Copy link
Copy Markdown
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

baco commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

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

@baco

baco commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

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

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

@ccordoba12 ccordoba12 left a comment

Copy link
Copy Markdown
Member

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