Python code complexity as Sublime Text 3 Linter

152 Views Asked by At

I like the python package radon and use it fairly often to help find/reduce complex code.

I'm normally developing in Sublime Text, and running radon beside in console, but would really like to have radon (or something similar) in sublime that will flag my function w/ a complexity that gives me any ranking less than "A"..kinda like pylint does when my code is junk.

I looked around for a SublimeLinter plugin that would check code complexity as you are typing out function etc. Has anyone seen a SublimeLinter plugin like that?

Thanks!

1

There are 1 best solutions below

0
sur.la.route On BEST ANSWER

I ended up creating a plugin for SublimeLinter. https://github.com/christopherpickering/SublimeLinter-contrib-radon