tonybaloney / perflint

Python Linter for performance anti patterns
MIT License
659 stars 10 forks source link

Add clarity to the try in a loop rule #48

Closed tonybaloney closed 8 months ago

tonybaloney commented 8 months ago

Fixes #37

jenstroeger commented 8 months ago

@tonybaloney would it make sense to skip this rule for v3.11+

import sys

if sys.version_info.minor < 11:
    # run the checker
tonybaloney commented 8 months ago

@tonybaloney would it make sense to skip this rule for v3.11+

import sys

if sys.version_info.minor < 11:
    # run the checker

The problem is you don't always run pylint on the same version that runs the code. Often people install it globally or using pipx

jenstroeger commented 8 months ago

The problem is you don't always run pylint on the same version that runs the code. Often people install it globally or using pipx

You’re right, good point. Nevermind then…