[code-quality] New pytest plugin: pytest-mccabe

Florian Bruhin me at the-compiler.org
Tue Jun 2 09:12:39 CEST 2015


Hi,

(first of all, sorry for the cross-posting, but I can't decide on which
list this belongs - at least I resisted sending it to the TIP list
too :P)

I recently started switching from flake8[1] to pytest-pep8[2] and
pytest-flakes[3], but missed a way to run the mccabe[4] code
complexity checker.

So I wrote my first pytest plugin to integrate that with pytest:

https://github.com/The-Compiler/pytest-mccabe

Any feedback is welcome! I plan to write some more tests (for the
config wildcards mainly) and run pylint/pyflakes/pep8 over it, and
then I'll release v0.1 on PyPI.

Thanks to:

- Florian Schulze for pytest-flakes, on which the code is based.
- Ned Batchelder for the original McCabe script.
- Florent Xicluna for mccabe on PyPI.

Florian

[1] https://pypi.python.org/pypi/flake8
[2] https://pypi.python.org/pypi/pytest-pep8
[3] https://pypi.python.org/pypi/pytest-flakes
[4] https://pypi.python.org/pypi/mccabe

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/code-quality/attachments/20150602/0455dc40/attachment.sig>


More information about the code-quality mailing list