Exclude/Ignore is not working
See original GitHub issueMaybe the style is being passed wrong to pycodestyle.
How to reproduce
- In tox.ini create:
[pycodestyle]
exclude = .tox
- Run tox and pylama try to test everything inside .tox, example:
pylama -v --options=tox.ini
File is reading: .tox/py36-test/bin/rst2odt.py
Run pycodestyle {'ignore': ['E501', 'C0301'], 'exclude': ['.tox', '.env', '.venv', '.git', 'build', 'dist', 'docs', 'tests', 'ui', '*.egg-info', '*cache*'], 'max-line-length': 100, 'statistics': ('T', 'r', 'u', 'e'), 'count': ('T', 'r', 'u', 'e')}
- Using the same configuration file, from tox.ini, but directly with pycodestyle:
pycodestyle --config=tox.ini -v
cli configuration: tox.ini
directory .
checking ./setup.py
directory ./helpdev
checking ./helpdev/__init__.py
checking ./helpdev/__main__.py
directory ./examples
directory ./.vscode
- Executing passing a list insteady of a string seems to result the same as the problem with pylama:
pycodestyle --exclude=['.tox'] -vv
Maybe something related to #143, but for me, it does not match the description. Tks
Info about the environment:
* HARDWARE-----------------------------------------------------------------------
- Machine....................... x86_64
- Processor..................... Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
- Total Memory.................. 16689 MB
- Free Memory................... 2166 MB
- Total Swap.................... 19999 MB
- Free Swap..................... 19999 MB
* OPERATING SYSTEM---------------------------------------------------------------
- System........................ Linux
- Release....................... 4.15.0-48-generic
- Platform...................... Linux-4.15.0-48-generic-x86_64-with-debian-buster-sid
- Version....................... #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019
* THREADS------------------------------------------------------------------------
- Version....................... NPTL 2.27
- Name.......................... pthread
- Lock.......................... semaphore
* PYTHON DISTRIBUTION------------------------------------------------------------
- Version....................... 3.6.8
- C Compiler.................... GCC 7.3.0
- C API Version................. 1013
- Implementation................ cpython
- Implementation Version........ 3.6.8
* PYTHON PACKAGES----------------------------------------------------------------
- pycodestyle................... 2.5.0
- pylama........................ 7.7.1
- tox........................... 3.9.0
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
git - .gitignore exclusion is not working for a single file
The problem is simply because you are ignoring the directory dist . So Git will no longer look into the directory to look...
Read more >How to fix "gitignore not working" issue - GitHub Gist
Commit all the changes to git. Exclude the folder/files you don't want commit, in my case node_modules · Execute the following command to...
Read more >gitignore Documentation - Git
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below...
Read more >Ignore files in Git without adding them to .gitignore
To ignore untracked files, you have a file in your git folder called .git/info/exclude . This file is your own gitignore inside your...
Read more >.gitignore file - ignoring files in Git | Atlassian Git Tutorial
Git ignore patterns are used to exclude certain files in your working ... There is no explicit git ignore command: instead the .gitignore...
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 FreeTop 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
Top GitHub Comments
ignore
for pydocstyle error codes works in main,[pylama]
, section.Thank you for the report. The issue has been fixed.