You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, I was unable to reproduce the crash locally when I ran pylint on the provided code with the command that you provided: pylint a.py. I got the following output:
************* Module a
a.py:1:0: C0114: Missing module docstring (missing-module-docstring)
a.py:4:0: E0401: Unable to import 'myTestRepo.test.options' (import-error)
a.py:3:0: C0411: standard import "warnings" should be placed before third party imports "dotenv.load_dotenv", "pytest" (wrong-import-order)
a.py:5:0: C0411: standard import "logging" should be placed before third party imports "dotenv.load_dotenv", "pytest", "myTestRepo.test.options" (wrong-import-order)
a.py:6:0: C0411: standard import "os" should be placed before third party imports "dotenv.load_dotenv", "pytest", "myTestRepo.test.options" (wrong-import-order)
a.py:1:0: W0611: Unused load_dotenv imported from dotenv (unused-import)
a.py:2:0: W0611: Unused import pytest (unused-import)
a.py:4:0: W0611: Unused myTestRepo.test.options imported as Options (unused-import)
a.py:6:0: W0611: Unused import os (unused-import)
Could you share the list of installed dependencies? A minimal code snippet that causes the crash would be helpful as well.
From this line of the stacktrace, I think this should be reported to pylint-pytest
File "/home/user/myProject-test/python/venv/lib/python3.10/site-packages/pylint_pytest/checkers/fixture.py", line 129, in visit_module
ret = pytest.main(
The crash happens if i define an invalid/non existing module in
pytest_plugin
.The import error is expected since that module doesn't exist, but it shouldn't crash pylint.
Once i remove the problematic import pylint runs fine.
The code that causes the crash:
Command used
Pylint output
pylint crashed with a ``AstroidError`` and with the following stacktrace:
Expected behavior
No crash.
Pylint version
OS / Environment
linux (Linux)
The text was updated successfully, but these errors were encountered: