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
I have also run into this in pylint 2.14.1. The workaround I found is to add a semicolon to the end of each line. This seems to allow it to still execute each statement after joining the lines into a single line.
Bug description
Up to version 2.13.9 multi-line init-hook configurations like the following were supported:
From version 2.14.0 on this no longer works. The error looks like the lines are joined into a single line:
Configuration
init-hook= try: import pylint_venv except ImportError: pass else: pylint_venv.inithook()
Pylint output
Expected behavior
The init-hook runs without a syntax error.
Pylint version
OS / Environment
No response
Additional dependencies
pylint-venv==2.2.0
The text was updated successfully, but these errors were encountered: