[openstack-dev] flake8 magic you should all know
Melanie Witt
melwitt at yahoo-inc.com
Sat May 18 18:09:31 UTC 2013
Hi Monty,
Thanks for sending this out.
I picked up this update and had a couple of minor issues.
1. It broke run_tests.sh, which I know there's been talk of not supporting going forward but just to let you know. I was able to run tox instead with success.
2. If I don't have python2.7 installed, I need to add importlib to tools/test-requires to get it installed in the venv.
Melanie
On May 16, 2013, at 7:29 PM, "Monty Taylor" <mordred at inaugust.com> wrote:
> Hey all!
>
> As you have all probably noticed, we're moving to using flake8 to run
> pep8/pyflakes/hacking checks. It's awesome and fills the worlds with
> magical ponies and flying cars. BUT - I realized that it's possible that
> perhaps people don't read all of the documentation for everything. So I
> wanted to share a quick trick.
>
> flake8, in a fit of amazingness normally not found in python utilities,
> knows how to read other people's config files. So - it actually reads
> the config section in tox.ini even when it's not in a venv. That means
> that, if your project has migrated to flake8 (that's most of you now)
> just running:
>
> flake8
>
> Will get you a flake8 run with all the right options and includes and
> excludes and everything. No wrapper scripts, no fake meat - only pure
> bacon. (you have to have flake8 installed, natch)
>
> Your friendly infra guy...
>
> Monty
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list