pep8 ignores config files in project
See original GitHub issueThe 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 .pep8
file in the user home works, though, but global options are not always appropriate. Interestingly, pylintrc
files 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:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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?