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
Here's a 33k character long, complicated line that I encountered. Pylint takes 30s to lint this for me.
The issue seems to be with from pylint.utils.pragma_parser.OPTION_PO being used in pylint.checker.FormatChecker.check_lines. This regex seems to be terribly slow when run on a long, complicated line of code.
Configuration
No response
Command used
pylint code.py
Pylint output
Not really relevant in this case
Expected behavior
For pylint to run faster :D
Pylint version
pylint 2.11.1
astroid 2.8.6-dev0
Python 3.10.0 (default, Oct 13 2021, 06:45:00) [Clang 13.0.0 (clang-1300.0.29.3)]
(This regression was introduced in pylint 2.5.0)
OS / Environment
MacOS Monterey
Additional dependencies
No response
The text was updated successfully, but these errors were encountered:
Bug description
Here's a 33k character long, complicated line that I encountered. Pylint takes 30s to lint this for me.
The issue seems to be with
from pylint.utils.pragma_parser.OPTION_PO
being used inpylint.checker.FormatChecker.check_lines
. This regex seems to be terribly slow when run on a long, complicated line of code.Configuration
No response
Command used
Pylint output
Expected behavior
For pylint to run faster :D
Pylint version
pylint 2.11.1 astroid 2.8.6-dev0 Python 3.10.0 (default, Oct 13 2021, 06:45:00) [Clang 13.0.0 (clang-1300.0.29.3)] (This regression was introduced in pylint 2.5.0)
OS / Environment
MacOS Monterey
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: