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.

Exclude/Ignore is not working

See original GitHub issue

Maybe the style is being passed wrong to pycodestyle.

How to reproduce

  1. In tox.ini create:
[pycodestyle]
exclude = .tox
  1. 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')}
  1. 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
  1. 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
remortcommented, Jul 15, 2020

ignore for pydocstyle error codes works in main, [pylama], section.

0reactions
klencommented, Nov 29, 2021

Thank you for the report. The issue has been fixed.

Read more comments on GitHub >

github_iconTop 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 >

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