asottile-archive/flake8-2020

Check for platform.python_version[:3] (python3.10)

tucked opened this issue · 1 comments

Very similar to YTT101, but for platform.python_version:

Python 3.10.0a2+ (heads/master:bbeb2d2, Nov 13 2020, 10:34:11)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.python_version()[:3]
'3.1'

this is more closely related to #27 which will likely get its own code -- I'm going to combine these two issues