question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pep8 ignores config files in project

See original GitHub issue

The pep8 testing ignores configuration given in config files (.pep8, tox.ini or setup.cfg) in the project (or workspace) folder, when it should read those files.

Having a .pep8file in the user home works, though, but global options are not always appropriate. Interestingly, pylintrcfiles for configuring the static code analysis are picked up correctly.

Windows 8, Spyder 2.3.4, pep8 1.6.2., pylint 1.4.2

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rlaverdecommented, Aug 29, 2017

I’m interested in looking into this at some point soon. Could one of the main devs give a pointer to where and how pep8/pycodestyle is called in the project? I can do the sleuthing myself if necessary though.

Pycodestyle automaticaly detects config file, the problem is that spyder creates a temporary file and call pycodestyle against that file

I think the best solution is to use the API (as @bilderbuchi suggested) http://pep8.readthedocs.io/en/latest/api.html Change check_with_pep8 function to use that API instead of saving a temp file,and calling the executable.

0reactions
randallpittmancommented, Aug 29, 2017

I’m interested in looking into this at some point soon. Could one of the main devs give a pointer to where and how pep8/pycodestyle is called in the project? I can do the sleuthing myself if necessary though.

EDIT: Does there happen to be any sort of software architecture documentation for Spyder?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable a pep8 error in a specific file? - Stack Overflow
0+, you can ignore specific warnings for entire files using the --per-file-ignores option. Command-line usage: flake8 --per-file-ignores='project/__init__.py: ...
Read more >
Introduction — pep8 1.7.1 documentation
Example: [pep8] ignore = E226,E302,E41 max-line-length = 160. At the project level, a setup.cfg file or a tox.ini file is read if present...
Read more >
Mailman 3 flake8 config file usage - code-quality - python.org
pep8 handles discovery and parsing of config files for flake8. Looking at what pep8 tries to find, your options are ~/.config/pep8, ./tox.ini, and...
Read more >
Configuration — flake8 2.5.5 documentation
Configuration ¶. Configuration settings are applied in three ways: user, project, and the --config CLI argument. The user (global) configuration is read ...
Read more >
flake8 Documentation - Read the Docs
The project Flake8 depends on to lint files (check for unused imports, variables, etc.) ... The conf file is mostly autogenerated, ignore it....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found