git-p4: sort and de-duplcate pylint disable list

git-p4 contains configuration commands for pylint embedded in the header comment. Previously, these were combined onto single lines and not alphabetically sorted. This patch breaks each disable command onto a separate line to give cleaner diffs, removed duplicate entries, and sorts the list alphabetically. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Joel Holdsworth committed Apr 1, 2022 at 15:24 UTC 794bb28d2a9853fa998c795120729277b17e047f
1 file changed +22 -7
git-p4.py
+22 -7
@@ -7,13 +7,28 @@
7 # 2007 Trolltech ASA
8 # License: MIT <http://www.opensource.org/licenses/mit-license.php>
9 #
10 -# pylint: disable=invalid-name,missing-docstring,too-many-arguments,broad-except
11 -# pylint: disable=no-self-use,wrong-import-position,consider-iterating-dictionary
12 -# pylint: disable=wrong-import-order,unused-import,too-few-public-methods
13 -# pylint: disable=too-many-lines,ungrouped-imports,fixme,too-many-locals
14 -# pylint: disable=line-too-long,bad-whitespace,superfluous-parens
15 -# pylint: disable=too-many-statements,too-many-instance-attributes
16 -# pylint: disable=too-many-branches,too-many-nested-blocks
10 +# pylint: disable=bad-whitespace
11 +# pylint: disable=broad-except
12 +# pylint: disable=consider-iterating-dictionary
13 +# pylint: disable=disable
14 +# pylint: disable=fixme
15 +# pylint: disable=invalid-name
16 +# pylint: disable=line-too-long
17 +# pylint: disable=missing-docstring
18 +# pylint: disable=no-self-use
19 +# pylint: disable=superfluous-parens
20 +# pylint: disable=too-few-public-methods
21 +# pylint: disable=too-many-arguments
22 +# pylint: disable=too-many-branches
23 +# pylint: disable=too-many-instance-attributes
24 +# pylint: disable=too-many-lines
25 +# pylint: disable=too-many-locals
26 +# pylint: disable=too-many-nested-blocks
27 +# pylint: disable=too-many-statements
28 +# pylint: disable=ungrouped-imports
29 +# pylint: disable=unused-import
30 +# pylint: disable=wrong-import-order
31 +# pylint: disable=wrong-import-position
32 #
33 import sys
34 if sys.version_info.major < 3 and sys.version_info.minor < 7: