Running pep8 and pyflakes

For a specific project I need to run pep8 and pyflakes

Is there a way to run those and get the result for current file?

Regards

6 comments

Hello Esteban,

For a specific project I need to run pep8 and pyflakes

Is there a way to run those and get the result for current file?

There is no direct integration for these tools. The plan is to provide the

equivalent functionality as Python inspections, and a significant part of

PyFlakes functionality is already supported as inspections.

You can use Settings | External Tools to configure a simple integration by

yourself.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

External tools will do... Thanks!

0

While most of pyflakes is definitely available as inspections.. The stylistic items from pep8 don't appear to be incorporated, and are important for working with larger code bases adhering to such standards imo.

0

Hello Kapil,

PyCharm's default formatter settings follow pep8. While my personal opinion

is that the stylistic inspections are of a very limited utility (if the code

is hard to read, you see it with your own eyes without assistance from an

IDE, and if it's not, then the stylistic inspections are just nitpicking),

we're still considering them for inclusion in a future version of PyCharm.

While most of pyflakes is definitely available as inspections.. The

stylistic items from pep8 don't appear to be incorporated, and are

important for working with larger code bases adhering to such

standards imo.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Hi Dmitry,

While I agree that stylistic impressions are of limited utility for overall readability, the last several opensource and commercial projects that I worked on with teams of developers had enforcement policies regarding compliance to pep8, ostensibly to minimize the variation across multiple developers. As is i often find i need to recheck source edited in pycharm with emacs/vim with integrated pep8 or run the pep8 tool by hand. It would be significantly easier if pycharm had at least an optional functionality to highlight pep8 violations. That's great that its being considered for future versions.

cheers,

Kapil

0

Just in case people want to get this working on Windows, I blogged about how to set it up over at: http://www.in-nomine.org/2010/12/14/pycharm-and-external-lint-tools/

Hopefully this helps others looking for this information.

0

Please sign in to leave a comment.