Questions tagged [pep8-checker]

6 questions
13
votes
1 answer

Scan complete directory tree using pep8

I'm using pep8 to check for coding guidelines. I am getting results only for the current directory. And not all directory or sub directory inside it. How to do that? When running it from the level of container/project, I don't get pyc files' errors.…
user3432110
  • 217
  • 1
  • 5
  • 11
7
votes
1 answer

Unable to set/use knobs with yapf(A python formatter by google)

I have recently been trying to get familiar with google/yapf. But somehow, I am unable to set up a .style.yapf and even setup.cfg. I am not sure where to place these files. Currently, I am using any/or both files in my current directory but the…
Shivam Chauhan
  • 103
  • 1
  • 7
3
votes
1 answer

How can I modify the value of "too-many-statements" from 50 to 100 in the pylintrc file?

When running Pylint on my file I am getting the following message. refactor (R0915, too-many-statements, function) Too many statements (95/50) I want to set the number of statements a function can have to 100 instead of 50 in order avoid the above…
3
votes
2 answers

pep8 - statistics for whole project

I am working on a Python project and I am using the PyPI pep8 checker. Is there a simple way to get a pep8 rating for my project? Like a percentage (eg. 10 lines doesn't match pep8, out of 100 lines) or any number to rate it? As far as I know pep8 /…
Zweistein
  • 293
  • 1
  • 4
  • 11
1
vote
0 answers

PEP-8 not working in Eclipse

I'm trying to use PEP-8 style formatting in Eclipse, but I can't make it work. My settings are correct, they are on the following screenshot: But there are no warnings in my code caused by pep8, it is not working. But if we take a look at the error…
Milan Tenk
  • 2,415
  • 1
  • 17
  • 24
0
votes
1 answer

Can I ask pep8 in python to parse a string instead of a file?

import pep8 s = """ def a: pass def b: pass """ pep8.StyleGuide().is_such_method_exists_for_string_?(s) // and then, get out put as list ?
miR172
  • 3
  • 1