pylint 2.13 available in depot_tools

1,756 views
Skip to first unread message

Josip Sokcevic

unread,
Nov 20, 2023, 7:25:03 PM11/20/23
to infra-a...@chromium.org
Hi all,

TL;DR pylint 2.13 is available for use in PRESUBMITs and is required only if you use py3.11 features. Using pylint 2.13 is optional.

depot_tools now provides pylint 2.13 which runs on Python 3.11. This is the only supported version of pylint for python 3.9+ language features. depot_tools pylint 2.7 supports python <=3.8.

To use pylint 2.13 in presubmit, pass version='2.13' to input_api.canned_checks.RunPylint or input_api.canned_checks.GetPylint.

Best,

--
Josip Sokcevic

Josip Sokcevic

unread,
Nov 28, 2023, 4:58:33 PM11/28/23
to infra-a...@chromium.org
Hi all,

We identified pylint 2.13 incompatibilities with py3.11 (https://crbug.com/1504663 has more details). So, pylint 2.13 was removed and pylint 2.17 was added.

To use pylint 2.17 in presubmit, pass version='2.17' to input_api.canned_checks.RunPylint or input_api.canned_checks.GetPylint.

Apologies for any inconvenience this may have caused.

Best,
--
Josip Sokcevic
Reply all
Reply to author
Forward
0 new messages