Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding from-stdin = false to toml config causes pylint to hang #966

Open
GrimzEcho opened this issue Mar 16, 2023 · 0 comments
Open

Adding from-stdin = false to toml config causes pylint to hang #966

GrimzEcho opened this issue Mar 16, 2023 · 0 comments

Comments

@GrimzEcho
Copy link

Overview

At the end of the docs on configuration (main section - https://pylint.readthedocs.io/en/latest/user_guide/configuration/all-options.html#main-checker), there is an example configuration section with the following code:

[tool.pylint.main]
analyse-fallback-blocks = false

clear-cache-post-run = false

# ...

from-stdin = false

ignore = ["CVS"]

# ...

If you use this configuration inside of a .toml file, then run pylint on a file, the process will hang indefinitely, with no output. The issue was traced back to the from-stdin setting.

Steps to reproduce

  1. Create a Python project/directory
  2. Create a pyproject.toml file with the following content:
[tool.pylint.main]
from-stdin = false
  1. Create a python file (test.py) with some basic Python code
  2. From the project root, run pylint ./test.py
  3. Note that Pylint hangs
  4. Comment out or remove the from-stdin = false line.
  5. Rerun pylint ./test.py
  6. Notice that it runs successfully

Details

pylint 2.17.0
astroid 2.15.0
Python 3.7.3 (default, Oct 31 2022, 14:04:00) 
[GCC 8.3.0]

Linux - Debian 10

virtualenv 20.16.4 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant