<div dir="ltr">there's a pylama project which is a bit buggy at error reporting, but it solves the code checks as a whole, which i appreciate<br><br><div><a href="https://github.com/klen/pylama">https://github.com/klen/pylama</a><br></div><div><br></div><div>So it general solution for code checks but it's also a pytest plugin which includes mccabe checks</div><div><br></div><div>I use it in several projects</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 2, 2015 at 9:12 AM Florian Bruhin <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
(first of all, sorry for the cross-posting, but I can't decide on which<br>
list this belongs - at least I resisted sending it to the TIP list<br>
too :P)<br>
<br>
I recently started switching from flake8[1] to pytest-pep8[2] and<br>
pytest-flakes[3], but missed a way to run the mccabe[4] code<br>
complexity checker.<br>
<br>
So I wrote my first pytest plugin to integrate that with pytest:<br>
<br>
<a href="https://github.com/The-Compiler/pytest-mccabe" target="_blank">https://github.com/The-Compiler/pytest-mccabe</a><br>
<br>
Any feedback is welcome! I plan to write some more tests (for the<br>
config wildcards mainly) and run pylint/pyflakes/pep8 over it, and<br>
then I'll release v0.1 on PyPI.<br>
<br>
Thanks to:<br>
<br>
- Florian Schulze for pytest-flakes, on which the code is based.<br>
- Ned Batchelder for the original McCabe script.<br>
- Florent Xicluna for mccabe on PyPI.<br>
<br>
Florian<br>
<br>
[1] <a href="https://pypi.python.org/pypi/flake8" target="_blank">https://pypi.python.org/pypi/flake8</a><br>
[2] <a href="https://pypi.python.org/pypi/pytest-pep8" target="_blank">https://pypi.python.org/pypi/pytest-pep8</a><br>
[3] <a href="https://pypi.python.org/pypi/pytest-flakes" target="_blank">https://pypi.python.org/pypi/pytest-flakes</a><br>
[4] <a href="https://pypi.python.org/pypi/mccabe" target="_blank">https://pypi.python.org/pypi/mccabe</a><br>
<br>
--<br>
<a href="http://www.the-compiler.org" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> (Mail/XMPP)<br>
   GPG: 916E B0C8 FD55 A072 | <a href="http://the-compiler.org/pubkey.asc" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a><br>
_______________________________________________<br>
pytest-dev mailing list<br>
<a href="mailto:pytest-dev@python.org" target="_blank">pytest-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pytest-dev" target="_blank">https://mail.python.org/mailman/listinfo/pytest-dev</a><br>
</blockquote></div>