A flake8 plugin that checks for misuse of `sys.version` or `sys.version_info` to detect code that will break on Python 4. Current version: 1.8.1 (requires Python >=3.8). Released irregularly; last release Dec 2024.
pip install flake8-2020Verified import paths — ran on the pinned version, not inferred.
The plugin is automatically discovered by flake8. Run 'flake8 yourfile.py' to check for sys.version misuse.
Run flake8 from the command line or integrate into your pre-commit hooks.
Use sys.version_info.major instead of string slicing.
Upgrade to Python 3.8 or later.
No dependency data recorded yet.