1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
|
------------------
Pylint's ChangeLog
------------------
What's New in Pylint 2.14.0?
============================
Release date: TBA
..
Put new features here and also in 'doc/whatsnew/2.14.rst'
* ``Pylint`` now requires Python 3.7.2 or newer to run.
Closes #4301
* ``BaseChecker`` classes now require the ``linter`` argument to be passed.
* Fix a failure to respect inline disables for ``fixme`` occurring on the last line
of a module when pylint is launched with ``--enable=fixme``.
* Update ``invalid-slots-object`` message to show bad object rather than its inferred value.
Closes #6101
* Added new checker ``typevar-name-mismatch``: TypeVar must be assigned to a variable with the same name as its name argument.
Closes #5224
* The ``config`` attribute of ``BaseChecker`` has been deprecated. You can use ``checker.linter.config``
to access the global configuration object instead of a checker-specific object.
Ref #5392
* The ``level`` attribute of ``BaseChecker`` has been deprecated: everything is now
displayed in ``--help``, all the time.
Ref #5392
* The ``options_providers`` attribute of ``ArgumentsManager`` has been deprecated.
Ref #5392
* The ``option_groups`` attribute of ``PyLinter`` has been deprecated.
Ref #5392
* The ``set_option`` method of ``BaseChecker`` has been deprecated. You can use ``checker.linter.set_option``
to set an option on the global configuration object instead of a checker-specific object.
Ref #5392
* The ``config`` attribute of ``PyLinter`` is now of the ``argparse.Namespace`` type instead of
``optparse.Values``.
Ref #5392
* ``UnsupportedAction`` has been deprecated.
Ref #5392
* ``OptionsManagerMixIn`` has been deprecated.
Ref #5392
* ``OptionParser`` has been deprecated.
Ref #5392
* ``Option`` has been deprecated.
Ref #5392
* ``OptionsProviderMixIn`` has been deprecated.
Ref #5392
* ``ConfigurationMixIn`` has been deprecated.
Ref #5392
* ``get_global_config`` has been deprecated. You can now access all global options from
``checker.linter.config``.
Ref #5392
* ``OptionsManagerMixIn`` has been replaced with ``ArgumentsManager``. ``ArgumentsManager`` is considered
private API and most methods that were public on ``OptionsManagerMixIn`` have now been deprecated and will
be removed in a future release.
Ref #5392
* ``OptionsProviderMixIn`` has been replaced with ``ArgumentsProvider``. ``ArgumentsProvider`` is considered
private API and most methods that were public on ``OptionsProviderMixIn`` have now been deprecated and will
be removed in a future release.
Ref #5392
* ``invalid-enum-extension``: Used when a class tries to extend an inherited Enum class.
Closes #5501
* Added the ``unrecognized-option`` message. Raised if we encounter any unrecognized options.
Closes #5259
* Added new checker ``typevar-double-variance``: The "covariant" and "contravariant" keyword arguments
cannot both be set to "True" in a TypeVar.
Closes #5895
* Re-enable checker ``bad-docstring-quotes`` for Python <= 3.7.
Closes #6087
* Exclude dunder calls on super() from raising ``unnecessary-dunder-call``.
Closes #6074
* Removed the broken ``generate-man`` option.
Closes #5283
Closes #1887
* Fix false negative for ``bad-string-format-type`` if the value to be formatted is passed in
as a variable holding a constant.
* Add new check ``unnecessary-dunder-call`` for unnecessary dunder method calls.
Closes #5936
* ``potential-index-error``: Emitted when the index of a list or tuple exceeds its length.
This checker is currently quite conservative to avoid false positives. We welcome
suggestions for improvements.
Closes #578
* The ``ignore-mixin-members`` option has been deprecated. You should now use the new
``ignored-checks-for-mixins`` option.
Closes #5205
* ``bad-option-value`` will be emitted whenever a configuration value or command line invocation
includes an unknown message.
Closes #4324
* Added the ``generate-toml-config`` option.
Ref #5462
* Added new checker ``unnecessary-list-index-lookup`` for indexing into a list while
iterating over ``enumerate()``.
Closes #4525
* Fix false positive for ``unsubscriptable-object`` in Python 3.8 and below for
statements guarded by ``if TYPE_CHECKING``.
Closes #3979
* Fix false negative for ``no-member`` when attempting to assign an instance
attribute to itself without any prior assignment.
Closes #1555
* The concept of checker priority has been removed.
* Add a new command line option ``--minimal-messages-config`` for ``pytest``, which disables all
irrelevant messages when running the functional tests.
* ``duplicate-argument-name`` now only raises once for each set of duplicated arguments.
* Fix bug where specifically enabling just ``await-outside-async`` was not possible.
* The ``set_config_directly`` decorator has been removed.
* Added new message called ``duplicate-value`` which identifies duplicate values inside sets.
Closes #5880
..
Insert your changelog randomly, it will reduce merge conflicts
(Ie. not necessarily at the end)
What's New in Pylint 2.13.6?
============================
Release date: TBA
* Asterisks are no longer required in Sphinx and Google style parameter documentation
for ``missing-param-doc`` and are parsed correctly.
Closes #5815
Closes #5406
What's New in Pylint 2.13.5?
============================
Release date: 2022-04-06
* Fix false positive regression in 2.13.0 for ``used-before-assignment`` for
homonyms between variable assignments in try/except blocks and variables in
subscripts in comprehensions.
Closes #6069
Closes #6136
* ``lru-cache-decorating-method`` has been renamed to ``cache-max-size-none`` and
will only be emitted when ``maxsize`` is ``None``.
Closes #6180
* Fix false positive for ``unused-import`` when disabling both ``used-before-assignment`` and ``undefined-variable``.
Closes #6089
* Narrow the scope of the ``unnecessary-ellipsis`` checker to:
* functions & classes which contain both a docstring and an ellipsis.
* A body which contains an ellipsis ``nodes.Expr`` node & at least one other statement.
* Fix false positive for ``used-before-assignment`` for assignments taking place via
nonlocal declarations after an earlier type annotation.
Closes #5394
* Fix crash for ``redefined-slots-in-subclass`` when the type of the slot is not a const or a string.
Closes #6100
* Only raise ``not-callable`` when all the inferred values of a property are not callable.
Closes #5931
* Fix a false negative for ``subclassed-final-class`` when a set of other messages were disabled.
What's New in Pylint 2.13.4?
============================
Release date: 2022-03-31
* Fix false positive regression in 2.13.0 for ``used-before-assignment`` for
homonyms between variable assignments in try/except blocks and variables in
a comprehension's filter.
Closes #6035
* Include ``testing_pylintrc`` in source and wheel distributions.
Closes #6028
* Fix crash in ``super-init-not-called`` checker when using ``ctypes.Union``.
Closes #6027
* Fix crash for ``unneccessary-ellipsis`` checker when an ellipsis is used inside of a container or a lambda expression.
Closes #6036
Closes #6037
Closes #6048
What's New in Pylint 2.13.3?
============================
Release date: 2022-03-29
* Fix false positive for ``unnecessary-ellipsis`` when using an ellipsis as a default argument.
Closes #5973
* Fix crash involving unbalanced tuple unpacking.
Closes #5998
* Fix false positive for 'nonexistent-operator' when repeated '-' are
separated (e.g. by parens).
Closes #5769
What's New in Pylint 2.13.2?
============================
Release date: 2022-03-27
* Fix crash when subclassing a ``namedtuple``.
Closes #5982
* Fix false positive for ``superfluous-parens`` for patterns like
"return (a or b) in iterable".
Closes #5803
* Fix a false negative regression in 2.13.0 where ``protected-access`` was not
raised on functions.
Fixes #5989
* Better error messages in case of crash if pylint can't write the issue template.
Refer to #5987
What's New in Pylint 2.13.1?
============================
Release date: 2022-03-26
* Fix a regression in 2.13.0 where ``used-before-assignment`` was emitted for
the usage of a nonlocal in a try block.
Fixes #5965
* Avoid emitting ``raising-bad-type`` when there is inference ambiguity on
the variable being raised.
Closes #2793
* Loosen TypeVar default name pattern a bit to allow names with multiple uppercase
characters. E.g. ``HVACModeT`` or ``IPAddressT``.
Closes #5981
* Fixed false positive for ``unused-argument`` when a ``nonlocal`` name is used
in a nested function that is returned without being called by its parent.
Closes #5187
* Fix program crash for ``modified_iterating-list/set/dict`` when the list/dict/set
being iterated through is a function call.
Closes #5969
* Don't emit ``broken-noreturn`` and ``broken-collections-callable`` errors
inside ``if TYPE_CHECKING`` blocks.
What's New in Pylint 2.13.0?
============================
Release date: 2022-03-24
* Add missing dunder methods to ``unexpected-special-method-signature`` check.
* No longer emit ``no-member`` in for loops that reference ``self`` if the binary operation that
started the for loop uses a ``self`` that is encapsulated in tuples or lists.
Ref PyCQA/astroid#1360
Closes #4826
* Output better error message if unsupported file formats are used with ``pyreverse``.
Closes #5950
* Fix pyreverse diagrams type hinting for classmethods and staticmethods.
* Fix pyreverse diagrams type hinting for methods returning None.
* Fix matching ``--notes`` options that end in a non-word character.
Closes #5840
* Updated the position of messages for class and function defintions to no longer cover
the complete definition. Only the ``def`` or ``class`` + the name of the class/function
are covered.
Closes #5466
* ``using-f-string-in-unsupported-version`` and ``using-final-decorator-in-unsupported-version`` msgids
were renamed from ``W1601`` and ``W1602`` to ``W2601`` and ``W2602``. Disabling using these msgids will break.
This is done in order to restore consistency with the already existing msgids for ``apply-builtin`` and
``basestring-builtin`` from the now deleted python 3K+ checker. There is now a check that we're not using
existing msgids or symbols from deleted checkers.
Closes #5729
* The line numbering for messages related to function arguments is now more accurate. This can
require some message disables to be relocated to updated positions.
* Add ``--recursive`` option to allow recursive discovery of all modules and packages in subtree. Running pylint with
``--recursive=y`` option will check all discovered ``.py`` files and packages found inside subtree of directory provided
as parameter to pylint.
Closes #352
* Add ``modified-iterating-list``, ``modified-iterating-dict`` and ``modified-iterating-set``,
emitted when items are added to or removed from respectively a list, dictionary or
set being iterated through.
Closes #5348
* Fix false-negative for ``assignment-from-none`` checker using list.sort() method.
closes #5722
* New extension ``import-private-name``: indicate imports of external private packages
and objects (prefixed with ``_``). It can be loaded using ``load-plugins=pylint.extensions.private_import``.
Closes #5463
* Fixed crash from ``arguments-differ`` and ``arguments-renamed`` when methods were
defined outside the top level of a class.
Closes #5648
* Removed the deprecated ``check_docs`` extension. You can use the ``docparams`` checker
to get the checks previously included in ``check_docs``.
Closes #5322
* Added a ``testutil`` extra require to the packaging, as ``gitpython`` should not be a dependency
all the time but is still required to use the primer helper code in ``pylint.testutil``. You can
install it with ``pip install pylint[testutil]``.
Closes #5486
* Reinstated checks from the python3 checker that are still useful for python 3
(``eq-without-hash``). This is now in the ``pylint.extensions.eq_without_hash`` optional
extension.
Closes #5025
* Fixed an issue where ``ungrouped-imports`` could not be disabled without raising
``useless-suppression``.
Ref #2366
* Added several checkers to deal with unicode security issues
(see `Trojan Sources <https://trojansource.codes/>`_ and
`PEP 672 <https://peps.python.org/pep-0672/>`_ for details) that also
concern the readability of the code. In detail the following checks were added:
* ``bad-file-encoding`` checks that the file is encoded in UTF-8 as suggested by
`PEP8 <https://peps.python.org/pep-0008/#source-file-encoding>`_.
UTF-16 and UTF-32 are `not supported by Python <https://bugs.python.org/issue1503789>`_
at the moment. If this ever changes
``invalid-unicode-codec`` checks that they aren't used, to allow for backwards
compatibility.
* ``bidirectional-unicode`` checks for bidirectional unicode characters that
could make code execution different than what the user expects.
* ``invalid-character-backspace``, ``invalid-character-carriage-return``,
``invalid-character-sub``, ``invalid-character-esc``,
``invalid-character-zero-width-space`` and ``invalid-character-nul``
to check for possibly harmful unescaped characters.
Closes #5281
* Use the ``tomli`` package instead of ``toml`` to parse ``.toml`` files.
Closes #5885
* Fix false positive - Allow unpacking of ``self`` in a subclass of ``typing.NamedTuple``.
Closes #5312
* Fixed false negative ``unpacking-non-sequence`` when value is an empty list.
Closes #5707
* Better warning messages for useless else or elif when a function returns early.
Closes #5614
* Fixed false positive ``consider-using-dict-comprehension`` when creating a dict
using a list of tuples where key AND value vary depending on the same condition.
Closes #5588
* Fixed false positive for ``global-variable-undefined`` when ``global`` is used with a class name
Closes #3088
* Fixed false positive for ``unused-variable`` when a ``nonlocal`` name is assigned as part of a multi-name assignment.
Closes #3781
* Fixed a crash in ``unspecified-encoding`` checker when providing ``None``
to the ``mode`` argument of an ``open()`` call.
Closes #5731
* Fixed a crash involving a ``NewType`` named with an f-string.
Closes #5770
Ref PyCQA/astroid#1400
* Improved ``bad-open-mode`` message when providing ``None`` to the ``mode``
argument of an ``open()`` call.
Closes #5733
* Added ``lru-cache-decorating-method`` checker with checks for the use of ``functools.lru_cache``
on class methods. This is unrecommended as it creates memory leaks by never letting the instance
getting garbage collected.
Closes #5670
* Fixed crash with recursion error for inference of class attributes that referenced
the class itself.
Closes #5408
Ref PyCQA/astroid#1392
* Fixed false positive for ``unused-argument`` when a method overridden in a subclass
does nothing with the value of a keyword-only argument.
Closes #5771
Ref PyCQA/astroid#1382
* The issue template for crashes is now created for crashes which were previously not covered
by this mechanism.
Closes #5668
* Rewrote checker for ``non-ascii-name``.
It now ensures __all__ Python names are ASCII and also properly
checks the names of imports (``non-ascii-module-import``) as
well as file names (``non-ascii-file-name``) and emits their respective new warnings.
Non ASCII characters could be homoglyphs (look alike characters) and hard to
enter on a non specialized keyboard.
See `Confusable Characters in PEP 672 <https://peps.python.org/pep-0672/#confusing-features>`_
* When run in parallel mode ``pylint`` now pickles the data passed to subprocesses with
the ``dill`` package. The ``dill`` package has therefore been added as a dependency.
* An astroid issue where symlinks were not being taken into account
was fixed
Closes #1470
Closes #3499
Closes #4302
Closes #4798
Closes #5081
* Fix a crash in ``unused-private-member`` checker when analyzing code using
``type(self)`` in bound methods.
Closes #5569
* Optimize parsing of long lines when ``missing-final-newline`` is enabled.
Closes #5724
* Fix false positives for ``used-before-assignment`` from using named
expressions in a ternary operator test and using that expression as
a call argument.
Closes #5177, #5212
* Fix false positive for ``undefined-variable`` when ``namedtuple`` class
attributes are used as return annotations.
Closes #5568
* Fix false negative for ``undefined-variable`` and related variable messages
when the same undefined variable is used as a type annotation and is
accessed multiple times, or is used as a default argument to a function.
Closes #5399
* Pyreverse - add output in mermaidjs format
* Emit ``used-before-assignment`` instead of ``undefined-variable`` when attempting
to access unused type annotations.
Closes #5713
* Added confidence level ``CONTROL_FLOW`` for warnings relying on assumptions
about control flow.
* ``used-before-assignment`` now considers that assignments in a try block
may not have occurred when the except or finally blocks are executed.
Closes #85, #2615
* Fixed false negative for ``used-before-assignment`` when a conditional
or context manager intervened before the try statement that suggested
it might fail.
Closes #4045
* Fixed false negative for ``used-before-assignment`` in finally blocks
if an except handler did not define the assignment that might have failed
in the try block.
* Fixed extremely long processing of long lines with comma's.
Closes #5483
* Fixed crash on properties and inherited class methods when comparing them for
equality against an empty dict.
Closes #5646
* Fixed a false positive for ``assigning-non-slot`` when the slotted class
defined ``__setattr__``.
Closes #3793
* Fixed a false positive for ``invalid-class-object`` when the object
being assigned to the ``__class__`` attribute is uninferable.
* Fixed false positive for ``used-before-assignment`` with self-referential type
annotation in conditional statements within class methods.
Closes #5499
* Add checker ``redefined-slots-in-subclass``: Emitted when a slot is redefined in a subclass.
Closes #5617
* Fixed false positive for ``global-variable-not-assigned`` when the ``del`` statement is used
Closes #5333
* By default, pylint does no longer take files starting with ``.#`` into account. Those are
considered `emacs file locks`. See
https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html.
This behavior can be reverted by redefining the ``ignore-patterns`` option.
Closes #367
* Fixed a false positive for ``used-before-assignment`` when a named expression
appears as the first value in a container.
Closes #5112
* ``used-before-assignment`` now assumes that assignments in except blocks
may not have occurred and warns accordingly.
Closes #4761
* When evaluating statements after an except block, ``used-before-assignment``
assumes that assignments in the except blocks took place if the
corresponding try block contained a return statement.
Closes #5500
* Fixed a false negative for ``used-before-assignment`` when some but not all
except handlers defined a name relied upon after an except block when the
corresponding try block contained a return statement.
Closes #5524
* When evaluating statements in the ``else`` clause of a loop, ``used-before-assignment``
assumes that assignments in the except blocks took place if the
except handlers constituted the only ways for the loop to finish without
breaking early.
Closes #5683
* ``used-before-assignment`` now checks names in try blocks.
* Fixed false positive with ``used-before-assignment`` for assignment expressions
in lambda statements.
Closes #5360, #3877
* Fixed a false positive (affecting unreleased development) for
``used-before-assignment`` involving homonyms between filtered comprehensions
and assignments in except blocks.
Closes #5586
* Fixed crash with slots assignments and annotated assignments.
Closes #5479
* Fixed crash on list comprehensions that used ``type`` as inner variable name.
Closes #5461
* Fixed crash in ``use-maxsplit-arg`` checker when providing the ``sep`` argument
to ``str.split()`` by keyword.
Closes #5737
* Fix false positive for ``unused-variable`` for a comprehension variable matching
an outer scope type annotation.
Closes #5326
* Fix false negative for ``undefined-variable`` for a variable used multiple times
in a comprehension matching an unused outer scope type annotation.
Closes #5654
* Some files in ``pylint.testutils`` were deprecated. In the future imports should be done from the
``pylint.testutils.functional`` namespace directly.
* Fixed false positives for ``no-value-for-parameter`` with variadic
positional arguments.
Closes #5416
* ``safe_infer`` no longer makes an inference when given two function
definitions with differing numbers of arguments.
Closes #3675
* Fix ``comparison-with-callable`` false positive for callables that raise, such
as typing constants.
Closes #5557
* Fixed a crash on ``__init__`` nodes when the attribute was previously uninferable due to a cache
limit size. This limit can be hit when the inheritance pattern of a class (and therefore of the ``__init__`` attribute) is very large.
Closes #5679
* Fix false positive for ``used-before-assignment`` from a class definition
nested under a function subclassing a class defined outside the function.
Closes #4590
* Fix ``unnecessary_dict_index_lookup`` false positive when deleting a dictionary's entry.
Closes #4716
* Fix false positive for ``used-before-assignment`` when an except handler
shares a name with a test in a filtered comprehension.
Closes #5817
* Fix crash in ``unnecessary-dict-index-lookup`` checker if the output of
``items()`` is assigned to a 1-tuple.
Closes #5504
* When invoking ``pylint``, ``epylint``, ``symilar`` or ``pyreverse`` by importing them in a python file
you can now pass an ``argv`` keyword besides patching ``sys.argv``.
Closes #5320
* The ``PyLinter`` class will now be initialized with a ``TextReporter``
as its reporter if none is provided.
* Fix ``super-init-not-called`` when parent or ``self`` is a ``Protocol``
Closes #4790
* Fix false positive ``not-callable`` with attributes that alias ``NamedTuple``
Partially closes #1730
* Emit ``redefined-outer-name`` when a nested except handler shadows an outer one.
Closes #4434
Closes #5370
* Fix false positive ``super-init-not-called`` for classes that inherit their ``init`` from
a parent.
Closes #4941
* ``encoding`` can now be supplied as a positional argument to calls that open
files without triggering ``unspecified-encoding``.
Closes #5638
* Fatal errors now emit a score of 0.0 regardless of whether the linted module
contained any statements
Closes #5451
* ``fatal`` was added to the variables permitted in score evaluation expressions.
* The default score evaluation now uses a floor of 0.
Closes #2399
* Fix false negative for ``consider-iterating-dictionary`` during membership checks encapsulated in iterables
or ``not in`` checks
Closes #5323
* Fixed crash on uninferable decorators on Python 3.6 and 3.7
* Add checker ``unnecessary-ellipsis``: Emitted when the ellipsis constant is used unnecessarily.
Closes #5460
* Disable checker ``bad-docstring-quotes`` for Python <= 3.7, because in these versions the line
numbers for decorated functions and classes are not reliable which interferes with the checker.
Closes #3077
* Fixed incorrect classification of Numpy-style docstring as Google-style docstring for
docstrings with property setter documentation.
Docstring classification is now based on the highest amount of matched sections instead
of the order in which the docstring styles were tried.
* Fixed detection of ``arguments-differ`` when superclass static
methods lacked a ``@staticmethod`` decorator.
Closes #5371
* ``TypingChecker``
* Added new check ``broken-noreturn`` to detect broken uses of ``typing.NoReturn``
if ``py-version`` is set to Python ``3.7.1`` or below.
https://bugs.python.org/issue34921
* Added new check ``broken-collections-callable`` to detect broken uses of ``collections.abc.Callable``
if ``py-version`` is set to Python ``3.9.1`` or below.
https://bugs.python.org/issue42965
* The ``testutils`` for unittests now accept ``end_lineno`` and ``end_column``. Tests
without these will trigger a ``DeprecationWarning``.
* ``arguments-differ`` will no longer complain about method redefinitions with extra parameters
that have default values.
Closes #1556, #5338
* Fixed false positive ``unexpected-keyword-arg`` for decorators.
Closes #258
* Importing the deprecated stdlib module ``xml.etree.cElementTree`` now emits ``deprecated_module``.
Closes #5862
* Disables for ``deprecated-module`` and similar warnings for stdlib features deprecated
in newer versions of Python no longer raise ``useless-suppression`` when linting with
older Python interpreters where those features are not yet deprecated.
* Importing the deprecated stdlib module ``distutils`` now emits ``deprecated_module`` on Python 3.10+.
* ``missing-raises-doc`` will now check the class hierarchy of the raised exceptions
.. code-block:: python
def my_function()
"""My function.
Raises:
Exception: if something fails
"""
raise ValueError
Closes #4955
* Allow disabling ``duplicate-code`` with a disable comment when running through
pylint.
Closes #214
* Improve ``invalid-name`` check for ``TypeVar`` names.
The accepted pattern can be customized with ``--typevar-rgx``.
Closes #3401
* Added new checker ``typevar-name-missing-variance``. Emitted when a covariant
or contravariant ``TypeVar`` does not end with ``_co`` or ``_contra`` respectively or
when a ``TypeVar`` is not either but has a suffix.
* Allow usage of mccabe 0.7.x release
Closes #5878
* Fix ``unused-private-member`` false positive when accessing private methods through ``property``.
Closes #4756
What's New in Pylint 2.12.2?
============================
Release date: 2021-11-25
* Fixed a false positive for ``unused-import`` where everything
was not analyzed properly inside typing guards.
* Fixed a false-positive regression for ``used-before-assignment`` for
typed variables in the body of class methods that reference the same class
Closes #5342
* Specified that the ``ignore-paths`` option considers "\" to represent a
windows directory delimiter instead of a regular expression escape
character.
* Fixed a crash with the ``ignore-paths`` option when invoking the option
via the command line.
Closes #5437
* Fixed handling of Sphinx-style parameter docstrings with asterisks. These
should be escaped with by prepending a "\".
Closes #5406
* Add ``endLine`` and ``endColumn`` keys to output of ``JSONReporter``.
Closes #5380
* Fixed handling of Google-style parameter specifications where descriptions
are on the line following the parameter name. These were generating
false positives for ``missing-param-doc``.
Closes #5452
* Fix false negative for ``consider-iterating-dictionary`` during membership checks encapsulated in iterables
or ``not in`` checks
Closes #5323
* ``unused-import`` now check all ancestors for typing guards
Closes #5316
What's New in Pylint 2.12.1?
============================
Release date: 2021-11-25
* Require Python ``3.6.2`` to run pylint.
Closes #5065
What's New in Pylint 2.12.0?
============================
Release date: 2021-11-24
* Upgrade astroid to 2.9.0
Closes #4982
* Add ability to add ``end_line`` and ``end_column`` to the ``--msg-template`` option.
With the standard ``TextReporter`` this will add the line and column number of the
end of a node to the output of Pylint. If these numbers are unknown, they are represented
by an empty string.
* Introduced primer tests and a configuration tests framework. The helper classes available in
``pylint/testutil/`` are still unstable and might be modified in the near future.
Closes #4412 #5287
* Fix ``install graphiz`` message which isn't needed for puml output format.
* ``MessageTest`` of the unittest ``testutil`` now requires the ``confidence`` attribute
to match the expected value. If none is provided it is set to ``UNDEFINED``.
* ``add_message`` of the unittest ``testutil`` now actually handles the ``col_offset`` parameter
and allows it to be checked against actual output in a test.
* Fix a crash in the ``check_elif`` extensions where an undetected if in a comprehension
with an if statement within a f-string resulted in an out of range error. The checker no
longer relies on counting if statements anymore and uses known if statements locations instead.
It should not crash on badly parsed if statements anymore.
* Fix ``simplify-boolean-expression`` when condition can be inferred as False.
Closes #5200
* Fix exception when pyreverse parses ``property function`` of a class.
* The functional ``testutils`` now accept ``end_lineno`` and ``end_column``. Expected
output files without these will trigger a ``DeprecationWarning``. Expected output files
can be easily updated with the ``python tests/test_functional.py --update-functional-output`` command.
* The functional ``testutils`` now correctly check the distinction between ``HIGH`` and
``UNDEFINED`` confidence. Expected output files without defined ``confidence`` levels will now
trigger a ``DeprecationWarning``. Expected output files can be easily updated with the
``python tests/test_functional.py --update-functional-output`` command.
* The functional test runner now supports the option ``min_pyver_end_position`` to control on which python
versions the ``end_lineno`` and ``end_column`` attributes should be checked. The default value is 3.8.
* Fix ``accept-no-yields-doc`` and ``accept-no-return-doc`` not allowing missing ``yield`` or
``return`` documentation when a docstring is partially correct
Closes #5223
* Add an optional extension ``consider-using-any-or-all`` : Emitted when a ``for`` loop only
produces a boolean and could be replaced by ``any`` or ``all`` using a generator. Also suggests
a suitable any or all statement.
Closes #5008
* Properly identify parameters with no documentation and add new message called ``missing-any-param-doc``
Closes #3799
* Add checkers ``overridden-final-method`` & ``subclassed-final-class``
Closes #3197
* Fixed ``protected-access`` for accessing of attributes and methods of inner classes
Closes #3066
* Added support for ``ModuleNotFoundError`` (``import-error`` and ``no-name-in-module``).
``ModuleNotFoundError`` inherits from ``ImportError`` and was added in Python ``3.6``
* ``undefined-variable`` now correctly flags variables which only receive a type annotations
and never get assigned a value
Closes #5140
* ``undefined-variable`` now correctly considers the line numbering and order of classes
used in metaclass declarations
Closes #4031
* ``used-before-assignment`` now correctly considers references to classes as type annotation
or default values in first-level methods
Closes #3771
* ``undefined-variable`` and ``unused-variable`` now correctly trigger for assignment expressions
in functions defaults
Fixes part of #3688
* ``undefined-variable`` now correctly triggers for assignment expressions in if ... else statements
This includes a basic form of control flow inference for if ... else statements using
constant boolean values
Closes #3688
* Added the ``--enable-all-extensions`` command line option. It will load all available extensions
which can be listed by running ``--list-extensions``
* Fix bug with importing namespace packages with relative imports
Closes #2967 and #5131
* Improve and flatten ``unused-wildcard-import`` message
Closes #3859
* In length checker, ``len-as-condition`` has been renamed as
``use-implicit-booleaness-not-len`` in order to be consistent with
``use-implicit-booleaness-not-comparison``.
* Created new ``UnsupportedVersionChecker`` checker class that includes checks for features
not supported by all versions indicated by a ``py-version``.
* Added ``using-f-string-in-unsupported-version`` checker. Issued when ``py-version``
is set to a version that does not support f-strings (< 3.6)
* Fix ``useless-super-delegation`` false positive when default keyword argument is a variable.
* Properly emit ``duplicate-key`` when Enum members are duplicate dictionary keys
Closes #5150
* Use ``py-version`` setting for alternative union syntax check (PEP 604),
instead of the Python interpreter version.
* Subclasses of ``dict`` are regarded as reversible by the ``bad-reversed-sequence`` checker
(Python 3.8 onwards).
Closes #4981
* Support configuring mixin class pattern via ``mixin-class-rgx``
* Added new checker ``use-implicit-booleaness-not-comparison``: Emitted when
collection literal comparison is being used to check for emptiness.
Closes #4774
* ``mising-param-doc`` now correctly parses asterisks for variable length and
keyword parameters
Closes #3733
* ``mising-param-doc`` now correctly handles Numpy parameter documentation without
explicit typing
Closes #5222
* ``pylint`` no longer crashes when checking assignment expressions within if-statements
Closes #5178
* Update ``literal-comparison``` checker to ignore tuple literals
Closes #3031
* Normalize the input to the ``ignore-paths`` option to allow both Posix and
Windows paths
Closes #5194
* Fix double emitting of ``not-callable`` on inferable ``properties``
Closes #4426
* ``self-cls-assignment`` now also considers tuple assignment
* Fix ``missing-function-docstring`` not being able to check ``__init__`` and other
magic methods even if the ``no-docstring-rgx`` setting was set to do so
* Added ``using-final-decorator-in-unsupported-version`` checker. Issued when ``py-version``
is set to a version that does not support ``typing.final`` (< 3.8)
* Added configuration option ``exclude-too-few-public-methods`` to allow excluding
classes from the ``min-public-methods`` checker.
Closes #3370
* The ``--jobs`` parameter now fallbacks to 1 if the host operating system does not
have functioning shared semaphore implementation.
Closes #5216
* Fix crash for ``unused-private-member`` when checking private members on ``__class__``
Closes #5261
* Crashes when a list is encountered in a toml configuration do not happen anymore.
Closes #4580
* Moved ``misplaced-comparison-constant`` to its own extension ``comparison_placement``.
This checker was opinionated and now no longer a default. It can be reactived by adding
``pylint.extensions.comparison_placement`` to ``load-plugins`` in your config.
Closes #1064
* A new ``bad-configuration-section`` checker was added that will emit for misplaced option
in pylint's top level namespace for toml configuration. Top-level dictionaries or option defined
in the wrong section will still silently not be taken into account, which is tracked in a
follow-up issue.
Follow-up in #5259
* Fix crash for ``protected-access`` on (outer) class traversal
* Added new checker ``useless-with-lock`` to find incorrect usage of with statement and threading module locks.
Emitted when ``with threading.Lock():`` is used instead of ``with lock_instance:``.
Closes #5208
* Make yn validator case insensitive, to allow for ``True`` and ``False`` in config files.
* Fix crash on ``open()`` calls when the ``mode`` argument is not a simple string.
Partially closes #5321
* Inheriting from a class that implements ``__class_getitem__`` no longer raises ``inherit-non-class``.
* Pyreverse - Add the project root directory to sys.path
Closes #2479
* Don't emit ``consider-using-f-string`` if ``py-version`` is set to Python < ``3.6``.
``f-strings`` were added in Python ``3.6``
Closes #5019
* Fix regression for ``unspecified-encoding`` with ``pathlib.Path.read_text()``
Closes #5029
* Don't emit ``consider-using-f-string`` if the variables to be interpolated include a backslash
* Fixed false positive for ``cell-var-from-loop`` when variable is used as the default
value for a keyword-only parameter.
Closes #5012
* Fix false-positive ``undefined-variable`` with ``Lambda``, ``IfExp``, and
assignment expression.
* Fix false-positive ``useless-suppression`` for ``wrong-import-order``
Closes #2366
* Fixed ``toml`` dependency issue
Closes #5066
* Fix false-positive ``useless-suppression`` for ``line-too-long``
Closes #4212
* Fixed ``invalid-name`` not checking parameters of overwritten base ``object`` methods
Closes #3614
* Fixed crash in ``consider-using-f-string`` if ``format`` is not called
Closes #5058
* Fix crash with ``AssignAttr`` in ``if TYPE_CHECKING`` blocks.
Closes #5111
* Improve node information for ``invalid-name`` on function argument.
* Prevent return type checkers being called on functions with ellipses as body
Closes #4736
* Add ``is_sys_guard`` and ``is_typing_guard`` helper functions from astroid
to ``pylint.checkers.utils``.
* Fix regression on ClassDef inference
Closes #5030
Closes #5036
* Fix regression on Compare node inference
Closes #5048
* Fix false-positive ``isinstance-second-argument-not-valid-type`` with ``typing.Callable``.
Closes #3507
Closes #5087
* It is now recommended to do ``pylint`` development on ``Python`` 3.8 or higher. This
allows using the latest ``ast`` parser.
* All standard jobs in the ``pylint`` CI now run on ``Python`` 3.8 by default. We still
support python 3.6 and 3.7 and run tests for those interpreters.
* ``TypingChecker``
* Fix false-negative for ``deprecated-typing-alias`` and ``consider-using-alias``
with ``typing.Type`` + ``typing.Callable``.
What's New in Pylint 2.11.1?
============================
Release date: 2021-09-16
* ``unspecified-encoding`` now checks the encoding of ``pathlib.Path()`` correctly
Closes #5017
What's New in Pylint 2.11.0?
============================
Release date: 2021-09-16
* The python3 porting mode checker and it's ``py3k`` option were removed. You can still find it in older pylint
versions.
* ``raising-bad-type`` is now properly emitted when raising a string
* Added new extension ``SetMembershipChecker`` with ``use-set-for-membership`` check:
Emitted when using an in-place defined ``list`` or ``tuple`` to do a membership test. ``sets`` are better optimized for that.
Closes #4776
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependent checks.
Will default to whatever Python version pylint is executed with.
* ``CodeStyleChecker``
* Added ``consider-using-assignment-expr``: Emitted when an assignment is directly followed by an if statement
and both can be combined by using an assignment expression ``:=``. Requires Python 3.8
Closes #4862
* Added ``consider-using-f-string``: Emitted when .format() or '%' is being used to format a string.
Closes #3592
* Fix false positive for ``consider-using-with`` if a context manager is assigned to a
variable in different paths of control flow (e. g. if-else clause).
Closes #4751
* https is now preferred in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org
Closes #3802
* Fix false positive for ``function-redefined`` for simple type annotations
Closes #4936
* Fix false positive for ``protected-access`` if a protected member is used in type hints of function definitions
* Fix false positive ``dict-iter-missing-items`` for dictionaries only using tuples as keys
Closes #3282
* The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()``
and ``pathlib.Path().write_text()``
Closes #4945
* Fix false positive ``superfluous-parens`` for tuples created with inner tuples
Closes #4907
* Fix false positive ``unused-private-member`` for accessing attributes in a class using ``cls``
Closes #4849
* Fix false positive ``unused-private-member`` for private staticmethods accessed in classmethods.
Closes #4849
* Extended ``consider-using-in`` check to work for attribute access.
* Setting ``min-similarity-lines`` to 0 now makes the similarty checker stop checking for duplicate code
Closes #4901
* Fix a bug where pylint complained if the cache's parent directory does not exist
Closes #4900
* The ``global-variable-not-assigned`` checker now catches global variables that are never reassigned in a
local scope and catches (reassigned) functions
Closes #1375
Closes #330
* Fix false positives for invalid-all-format that are lists or tuples at runtime
Closes #4711
* Fix ``no-self-use`` and ``docparams extension`` for async functions and methods.
* Add documentation for ``pyreverse`` and ``symilar``
Closes #4616
* Non symbolic messages with the wrong capitalisation now correctly trigger ``use-symbolic-message-instead``
Closes #5000
* The ``consider-iterating-dictionary`` checker now also considers membership checks
Closes #4069
* The ``invalid-name`` message is now more detailed when using multiple naming style regexes.
What's New in Pylint 2.10.2?
============================
Release date: 2021-08-21
* We now use platformdirs instead of appdirs since the latter is not maintained.
Closes #4886
* Fix a crash in the checker raising ``shallow-copy-environ`` when failing to infer
on ``copy.copy``
Closes #4891
What's New in Pylint 2.10.1?
============================
Release date: 2021-08-20
* pylint does not crash when PYLINT_HOME does not exist.
Closes #4883
What's New in Pylint 2.10.0?
============================
Release date: 2021-08-20
* pyreverse: add option to produce colored output.
Closes #4488
* pyreverse: add output in PlantUML format.
Closes #4498
* ``consider-using-with`` is no longer triggered if a context manager is returned from a function.
Closes #4748
* pylint does not crash with a traceback anymore when a file is problematic. It
creates a template text file for opening an issue on the bug tracker instead.
The linting can go on for other non problematic files instead of being impossible.
* pyreverse: Show class has-a relationships inferred from the type-hint
Closes #4744
* Fixed a crash when importing beyond the top level package during ``import-error``
message creation
Closes #4775
* Added ``ignored-parents`` option to the design checker to ignore specific
classes from the ``too-many-ancestors`` check (R0901).
Partially closes #3057
* Added ``unspecified-encoding``: Emitted when open() is called without specifying an encoding
Closes #3826
* Improved the Similarity checker performance. Fix issue with ``--min-similarity-lines`` used with ``--jobs``.
Close #4120
Close #4118
* Don't emit ``no-member`` error if guarded behind if statement.
Ref #1162
Closes #1990
Closes #4168
* The default for ``PYLINTHOME`` is now the standard ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``.
Closes #3878
* Added ``use-list-literal``: Emitted when ``list()`` is called with no arguments instead of using ``[]``
Closes #4365
* Added ``use-dict-literal``: Emitted when ``dict()`` is called with no arguments instead of using ``{}``
Closes #4365
* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block.
Closes # 4366
* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used.
Closes # 4367
* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found
Closes #3692
* Fix false-positive of ``unused-private-member`` when using nested functions in a class
Closes #4673
* Fix crash for ``unused-private-member`` that occurred with nested attributes.
Closes #4755
* Fix a false positive for ``unused-private-member`` with class names
Closes #4681
* Fix false positives for ``superfluous-parens`` with walrus operator, ternary operator and inside list comprehension.
Closes #2818
Closes #3249
Closes #3608
Closes #4346
* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced
Closes #4042
* Refactor of ``--list-msgs`` & ``--list-msgs-enabled``: both options now show whether messages are emittable with the current interpreter.
Closes #4778
* Fix false negative for ``used-before-assignment`` when the variable is assigned
in an exception handler, but used outside of the handler.
Closes #626
* Added ``disable-next`` option: allows using `# pylint: disable-next=msgid` to disable a message for the following line
Closes #1682
* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string
Closes #4102
* Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions,
and function default argument expressions. Also handle basic variable shadowing.
Closes #2846
Closes #3107
* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when
both ``unused-variable`` and ``used-before-assignment`` are disabled.
* Fix false positive for ``invalid-all-format`` if the list or tuple builtin functions are used
Closes #4711
* Config files can now contain environment variables
Closes #3839
* Fix false-positive ``used-before-assignment`` with an assignment expression in a ``Return`` node
Closes #4828
* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``.
* ``CodeStyleChecker``
* Limit ``consider-using-tuple`` to be emitted only for in-place defined ``lists``.
* Emit ``consider-using-tuple`` even if list contains a ``starred`` expression.
* Ignore decorators lines by similarities checker when ignore signatures flag enabled
Closes #4839
* Allow ``true`` and ``false`` values in ``pylintrc`` for better compatibility with ``toml`` config.
* Class methods' signatures are ignored the same way as functions' with similarities "ignore-signatures" option enabled
Closes #4653
* Improve performance when inferring ``Call`` nodes, by utilizing caching.
* Improve error message for invalid-metaclass when the node is an Instance.
What's New in Pylint 2.9.6?
===========================
Release date: 2021-07-28
* Fix a false positive ``undefined-variable`` when variable name in decoration
matches function argument
Closes #3791
What's New in Pylint 2.9.5?
===========================
Release date: 2021-07-21
* Fix a crash when there would be a 'TypeError object does not support
item assignment' in the code we parse.
Closes #4439
* Fix crash if a callable returning a context manager was assigned to a list or dict item
Closes #4732
* Fix a crash when an AttributeInferenceError was not handled properly when
failing to infer the real name of an import in astroid.
Closes #4692
What's New in Pylint 2.9.4?
===========================
Release date: 2021-07-20
* Added ``time.clock`` to deprecated functions/methods for python 3.3
* Fix bug in which --fail-on can return a zero exit code even when the specified issue is present
Closes #4296
Closes #3363
* Fix hard failure when handling missing attribute in a class with duplicated bases
Closes #4687
* Fix false-positive ``consider-using-with`` (R1732) if a ternary conditional is used together with ``with``
Closes #4676
* Fix false-positive ``deprecated-module`` when relative import uses deprecated module name.
Closes #4629
* Fix false-positive ``consider-using-with`` (R1732) if ``contextlib.ExitStack`` takes care of calling the ``__exit__`` method
Closes #4654
* Fix a false positive for ``unused-private-member`` when mutating a private attribute
with ``cls``
Closes #4657
* Fix ignored empty functions by similarities checker with "ignore-signatures" option enabled
Closes #4652
* Fix false-positive of ``use-maxsplit-arg`` when index is incremented in
a loop
Closes #4664
* Don't emit ``cyclic-import`` message if import is guarded by ``typing.TYPE_CHECKING``.
Closes #3525
* Fix false-positive ``not-callable`` with alternative ``TypedDict`` syntax
Closes #4715
* Clarify documentation for consider-using-from-import
* Don't emit ``unreachable`` warning for empty generator functions
Closes #4698
* Don't emit ``import-error``, ``no-name-in-module``, and ``ungrouped-imports``
for imports guarded by ``sys.version_info`` or ``typing.TYPE_CHECKING``.
Closes #3285
Closes #3382
* Fix ``invalid-overridden-method`` with nested property
Closes #4368
* Fix false-positive of ``unused-private-member`` when using ``__new__`` in a class
Closes #4668
* No longer emit ``consider-using-with`` for ``ThreadPoolExecutor`` and ``ProcessPoolExecutor``
as they have legitimate use cases without a ``with`` block.
Closes #4689
* Fix crash when inferring variables assigned in match patterns
Closes #4685
* Fix a crash when a StopIteration was raised when inferring
a faulty function in a context manager.
Closes #4723
What's New in Pylint 2.9.3?
===========================
Release date: 2021-07-01
* Fix a crash that happened when analysing empty function with docstring
in the ``similarity`` checker.
Closes #4648
* The ``similarity`` checker no longer add three trailing whitespaces for
empty lines in its report.
What's New in Pylint 2.9.2?
===========================
Release date: 2021-07-01
* Fix a crash that happened when analysing code using ``type(self)`` to access
a class attribute in the ``unused-private-member`` checker.
Closes #4638
* Fix a false positive for ``unused-private-member`` when accessing a private variable
with ``self``
Closes #4644
* Fix false-positive of ``unnecessary-dict-index-lookup`` and ``consider-using-dict-items``
for reassigned dict index lookups
Closes #4630
What's New in Pylint 2.9.1?
===========================
Release date: 2021-06-30
* Upgrade astroid to 2.6.2
Closes #4631
Closes #4633
What's New in Pylint 2.9.0?
===========================
Release date: 2021-06-29
* Python 3.10 is now supported.
* Add type annotations to pyreverse dot files
Closes #1548
* Fix missing support for detecting deprecated aliases to existing
functions/methods.
Closes #4618
* astroid has been upgraded to 2.6.1
* Added various deprecated functions/methods for python 3.10, 3.7, 3.6 and 3.3
* Fix false positive ``useless-type-doc`` on ignored argument using ``pylint.extensions.docparams``
when a function was typed using pep484 but not inside the docstring.
Closes #4117
Closes #4593
* ``setuptools_scm`` has been removed and replaced by ``tbump`` in order to not
have hidden runtime dependencies to setuptools
* Fix a crash when a test function is decorated with ``@pytest.fixture`` and astroid can't
infer the name of the decorator when using ``open`` without ``with``.
Closes #4612
* Added ``deprecated-decorator``: Emitted when deprecated decorator is used.
Closes #4429
* Added ``ignore-paths`` behaviour. Defined regex patterns are matched against full file path.
Close #2541
* Fix false negative for ``consider-using-with`` if calls like ``open()`` were used outside of assignment expressions.
* The warning for ``arguments-differ`` now signals explicitly the difference it detected
by naming the argument or arguments that changed and the type of change that occurred.
* Suppress ``consider-using-with`` inside context managers.
Closes #4430
* Added ``--fail-on`` option to return non-zero exit codes regardless of ``--fail-under`` value.
* numversion tuple contains integers again to fix multiple pylint's plugins that relied on it
Closes #4420
* Fix false-positive ``too-many-ancestors`` when inheriting from builtin classes,
especially from the ``collections.abc`` module
Closes #4166
Closes #4415
* Stdlib deprecated modules check is moved to stdlib checker. New deprecated
modules are added.
* Fix raising false-positive ``no-member`` on abstract properties
* Created new error message called ``arguments-renamed`` which identifies any changes at the parameter
names of overridden functions.
Closes #3536
* New checker ``consider-using-dict-items``. Emitted when iterating over dictionary keys and then
indexing the same dictionary with the key within loop body.
Closes #3389
* Don't emit ``import-error`` if import guarded behind ``if sys.version_info >= (x, x)``
* Fix incompatibility with Python 3.6.0 caused by ``typing.Counter`` and ``typing.NoReturn`` usage
Closes #4412
* New checker ``use-maxsplit-arg``. Emitted either when accessing only the first or last
element of ``str.split()``.
Closes #4440
* Add ignore_signatures to duplicate code checker
Closes #3619
* Fix documentation errors in "Block disables" paragraph of User Guide.
* New checker ``unnecessary-dict-index-lookup``. Emitted when iterating over dictionary items
(key-value pairs) and accessing the value by index lookup.
Closes #4470
* New checker``consider-using-from-import``. Emitted when a submodule/member of a package is imported and aliased
with the same name.
Closes #2309
* Allow comma-separated list in ``output-format`` and separate output files for
each specified format.
Closes #1798
* Make ``using-constant-test`` detect constant tests consisting of list literals like ``[]`` and
``[1, 2, 3]``.
* Improved error message of ``unnecessary-comprehension`` checker by providing code suggestion.
Closes #4499
* New checker ``unused-private-member``. Emitted when a private member (i.e., starts with ``__``) of a class
is defined but not used.
Closes #4483
* Fix false negative of ``consider-using-enumerate`` when iterating over an attribute.
Closes #3657
* New checker ``invalid-class-object``. Emitted when a non-class is assigned to a ``__class__`` attribute.
Closes #585
* Fix a crash when a plugin from the configuration could not be loaded and raise an error
'bad-plugin-value' instead
Closes #4555
* Added handling of floating point values when parsing configuration from pyproject.toml
Closes #4518
* ``invalid-length-returned``, now also works when nothing at all is returned
following an upgrade in astroid.
* ``logging-format-interpolation`` and ``logging-not-lazy``, now works on logger
class created from renamed logging import following an upgrade in astroid.
* Fix false-positive ``no-member`` with generic base class
Closes PyCQA/astroid#942
* Fix ``assigning-non-slot`` false-positive with base that inherits from ``typing.Generic``
Closes #4509
Closes PyCQA/astroid#999
* New checker ``invalid-all-format``. Emitted when ``__all__`` has an invalid format,
i.e. isn't a ``tuple`` or ``list``.
* Fix false positive ``unused-variable`` and ``undefined-variable`` with
Pattern Matching in Python 3.10
* New checker ``await-outside-async``. Emitted when await is used outside an async function.
* Clarify documentation for ``typing`` extension.
Closes #4545
* Add new extension ``CodeStyleChecker``. It includes checkers that can improve code
consistency. As such they don't necessarily provide a performance benefit
and are often times opinionated.
* New checker ``consider-using-tuple``. Emitted when an in-place defined
list or set can be replaced by a tuple.
* New checker ``consider-using-namedtuple-or-dataclass``. Emitted when dictionary values
can be replaced by namedtuples or dataclass instances.
* Fix error that occurred when using ``slice`` as subscript for dict.
* Reduce false-positives around inference of ``.value`` and ``.name``
properties on ``Enum`` subclasses, following an upgrade in astroid
Closes #1932
Closes #2062
* Fix issue with ``cached_property`` that caused ``invalid-overridden-method`` error
when overriding a ``property``.
Closes #4023
* Fix ``unused-import`` false positive for imported modules referenced in
attribute lookups in type comments.
Closes #4603
What's New in Pylint 2.8.3?
===========================
Release date: 2021-05-31
* Astroid has been pinned to 2.5.6 for the 2.8 branch see #4527.
What's New in Pylint 2.8.2?
===========================
Release date: 2021-04-26
* Keep ``__pkginfo__.numversion`` a tuple to avoid breaking pylint-django.
Closes #4405
* scm_setuptools has been added to the packaging.
* Pylint's tags are now the standard form ``vX.Y.Z`` and not ``pylint-X.Y.Z`` anymore.
* New warning message ``deprecated-class``. This message is emitted if import or call deprecated class of the
standard library (like ``collections.Iterable`` that will be removed in Python 3.10).
Closes #4388
What's New in Pylint 2.8.1?
===========================
Release date: 2021-04-25
* Add numversion back (temporarily) in ``__pkginfo__`` because it broke Pylama and revert the unnecessary
``pylint.version`` breaking change.
Closes #4399
What's New in Pylint 2.8.0?
===========================
Release date: 2021-04-24
* New refactoring message ``consider-using-with``. This message is emitted if resource-allocating functions or methods of the
standard library (like ``open()`` or ``threading.Lock.acquire()``) that can be used as a context manager are called without
a ``with`` block.
Closes #3413
* Resolve false positives on unused variables in decorator functions
Closes #4252
* Add new extension ``ConfusingConsecutiveElifChecker``. This optional checker emits a refactoring message (R5601 ``confusing-consecutive-elif``)
if if/elif statements with different indentation levels follow directly one after the other.
* New option ``--output=<file>`` to output result to a file rather than printing to stdout.
Closes #1070
* Use a prescriptive message for ``unidiomatic-typecheck``
Closes #3891
* Apply ``const-naming-style`` to module constants annotated with
``typing.Final``
* The packaging is now done via setuptools exclusively. ``doc``, ``tests``, ``man``, ``elisp`` and ``Changelog`` are
not packaged anymore - reducing the size of the package by 75%.
* Debian packaging is now (officially) done in https://salsa.debian.org/python-team/packages/pylint.
* The 'doc' extra-require has been removed.
* ``__pkginfo__`` now only contain ``__version__`` (also accessible with ``pylint.__version__``), other meta-information are still
accessible with ``from importlib import metadata;metadata.metadata('pylint')``.
* COPYING has been renamed to LICENSE for standardization.
* Fix false-positive ``used-before-assignment`` in function returns.
Closes #4301
* Updated ``astroid`` to 2.5.3
Closes #2822, #4206, #4284
* Add ``consider-using-min-max-builtin`` check for if statement which could be replaced by Python builtin min or max
Closes #3406
* Don't auto-enable postponed evaluation of type annotations with Python 3.10
* Update ``astroid`` to 2.5.4
* Add new extension ``TypingChecker``. This optional checker can detect the use of deprecated typing aliases
and can suggest the use of the alternative union syntax where possible.
(For example, 'typing.Dict' can be replaced by 'dict', and 'typing.Unions' by '|', etc.)
Make sure to check the config options if you plan on using it!
* Reactivates old counts in report mode.
Closes #3819
* During detection of ``inconsistent-return-statements`` consider that ``assert False`` is a return node.
Closes #4019
* Run will not fail if score exactly equals ``config.fail_under``.
* Functions that never returns may declare ``NoReturn`` as type hints, so that
``inconsistent-return-statements`` is not emitted.
Closes #4122, #4188
* Improved protected access checks to allow access inside class methods
Closes #1159
* Fix issue with PEP 585 syntax and the use of ``collections.abc.Set``
* Fix issue that caused class variables annotated with ``typing.ClassVar`` to be
identified as class constants. Now, class variables annotated with
``typing.Final`` are identified as such.
Closes #4277
* Continuous integration with read the doc has been added.
Closes #3850
* Don't show ``DuplicateBasesError`` for attribute access
* Fix crash when checking ``setup.cfg`` for pylint config when there are non-ascii characters in there
Closes #4328
* Allow code flanked in backticks to be skipped by spellchecker
Closes #4319
* Allow Python tool directives (for black, flake8, zimports, isort, mypy, bandit, pycharm) at beginning of comments to be skipped by spellchecker
Closes #4320
* Fix issue that caused emacs pylint to fail when used with tramp
* Improve check for invalid PEP 585 syntax inside functions
if postponed evaluation of type annotations is enabled
* Improve check for invalid PEP 585 syntax as default function arguments
What's New in Pylint 2.7.4?
===========================
Release date: 2021-03-30
* Fix a problem with disabled msgid not being ignored
Closes #4265
* Fix issue with annotated class constants
Closes #4264
What's New in Pylint 2.7.3?
===========================
Release date: 2021-03-29
* Introduce logic for checking deprecated attributes in DeprecationMixin.
* Reduce usage of blacklist/whitelist terminology. Notably, ``extension-pkg-allow-list`` is an
alternative to ``extension-pkg-whitelist`` and the message ``blacklisted-name`` is now emitted as
``disallowed-name``. The previous names are accepted to maintain backward compatibility.
* Move deprecated checker to ``DeprecatedMixin``
Closes #4086
* Bump ``astroid`` version to ``2.5.2``
* Fix false positive for ``method-hidden`` when using private attribute and method
Closes #3936
* ``use-symbolic-message-instead`` now also works on legacy messages like ``C0111`` (``missing-docstring``).
* Remove unwanted print to stdout from ``_emit_no_member``
* Introduce a command-line option to specify pyreverse output directory
Closes #4159
* Fix issue with Enums and ``class-attribute-naming-style=snake_case``
Closes #4149
* Add ``allowed-redefined-builtins`` option for fine tuning ``redefined-builtin`` check.
Close #3263
* Fix issue when executing with ``python -m pylint``
Closes #4161
* Exempt ``typing.TypedDict`` from ``too-few-public-methods`` check.
Closes #4180
* Fix false-positive ``no-member`` for typed annotations without default value.
Closes #3167
* Add ``--class-const-naming-style`` for Enum constants and class variables annotated
with ``typing.ClassVar``
Closes #4181
* Fix astroid.Inference error for undefined-variables with ``len()```
Closes #4215
* Fix column index on FIXME warning messages
Closes #4218
* Improve handling of assignment expressions, better edge case handling
Closes #3763, #4238
* Improve check if class is subscriptable PEP585
* Fix documentation and filename handling of --import-graph
* Fix false-positive for ``unused-import`` on class keyword arguments
Closes #3202
* Fix regression with plugins on PYTHONPATH if latter is cwd
Closes #4252
What's New in Pylint 2.7.2?
===========================
Release date: 2021-02-28
* Fix False Positive on ``Enum.__members__.items()``, ``Enum.__members__.values``, and ``Enum.__members__.keys``
Closes #4123
* Properly strip dangerous sys.path entries (not just the first one)
Closes #3636
* Workflow and packaging improvements
What's New in Pylint 2.7.1?
===========================
Release date: 2021-02-23
* Expose ``UnittestLinter`` in pylint.testutils
* Don't check directories starting with '.' when using register_plugins
Closes #4119
What's New in Pylint 2.7.0?
===========================
Release date: 2021-02-21
* Introduce DeprecationMixin for reusable deprecation checks.
Closes #4049
* Fix false positive for ``builtin-not-iterating`` when ``map`` receives iterable
Closes #4078
* Python 3.6+ is now required.
* Fix false positive for ``builtin-not-iterating`` when ``zip`` receives iterable
* Add ``nan-comparison`` check for NaN comparisons
* Bug fix for empty-comment message line number.
Closes #4009
* Only emit ``bad-reversed-sequence`` on dictionaries if below py3.8
Closes #3940
* Handle class decorators applied to function.
Closes #3882
* Add check for empty comments
* Fix minor documentation issue in contribute.rst
* Enums are now required to be named in UPPER_CASE by ``invalid-name``.
Close #3834
* Add missing checks for deprecated functions.
* Postponed evaluation of annotations are now recognized by default if python version is above 3.10
Closes #3992
* Fix column metadata for anomalous backslash lints
* Drop support for Python 3.5
* Add support for pep585 with postponed evaluation
Closes #3320
* Check alternative union syntax - PEP 604
Closes #4065
* Fix multiple false positives with assignment expressions
Closes #3347, #3953, #3865, #3275
* Fix TypedDict inherit-non-class false-positive Python 3.9+
Closes #1927
* Fix issue with nested PEP 585 syntax
* Fix issue with nested PEP 604 syntax
* Fix a crash in ``undefined-variable`` caused by chained attributes in metaclass
Close #3742
* Fix false positive for ``not-async-context-manager`` when ``contextlib.asynccontextmanager`` is used
Close #3862
* Fix linter multiprocessing pool shutdown (triggered warnings when ran in parallels with other pytest plugins)
Closes #3779
* Fix a false-positive emission of ``no-self-use`` and ``unused-argument`` for methods
of generic structural types (`Protocol[T]`)
Closes #3885
* Fix bug that lead to duplicate messages when using ``--jobs 2`` or more.
Close #3584
* Adds option ``check-protected-access-in-special-methods`` in the ClassChecker to activate/deactivate
``protected-access`` message emission for single underscore prefixed attribute in special methods.
Close #3120
* Fix vulnerable regular expressions in ``pyreverse``
Close #3811
* ``inconsistent-return-statements`` message is now emitted if one of ``try/except`` statement
is not returning explicitly while the other do.
Closes #3468
* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionary.
Close #3773
* Fix a crash when a specified config file does not exist
* Add support to ``ignored-argument-names`` in DocstringParameterChecker and adds ``useless-param-doc`` and ``useless-type-doc`` messages.
Close #3800
* Enforce docparams consistently when docstring is not present
Close #2738
* Fix ``duplicate-code`` false positive when lines only contain whitespace and non-alphanumeric characters (e.g. parentheses, bracket, comma, etc.)
* Improve lint message for ``singleton-comparison`` with bools
* Fix spell-checker crash on indented docstring lines that look like # comments
Close #3786
* Fix AttributeError in checkers/refactoring.py
* Improve sphinx directives spelling filter
* Fix a bug with postponed evaluation when using aliases for annotations.
Close #3798
* Fix minor documentation issues
* Improve the performance of the line length check.
* Removed incorrect deprecation of ``inspect.getfullargspec``
* Fix ``signature-differs`` false positive for functions with variadics
Close #3737
* Fix a crash in ``consider-using-enumerate`` when encountering ``range()`` without arguments
Close #3735
* ``len-as-conditions`` is now triggered only for classes that are inheriting directly from list, dict, or set and not implementing the ``__bool__`` function, or from generators like range or list/dict/set comprehension. This should reduce the false positives for other classes, like pandas's DataFrame or numpy's Array.
Close #1879
* Fixes duplicate-errors not working with -j2+
Close #3314
* ``generated-members`` now matches the qualified name of members
Close #2498
* Add check for bool function to ``len-as-condition``
* Add ``simplifiable-condition`` check for extraneous constants in conditionals using and/or.
* Add ``condition-evals-to-constant`` check for conditionals using and/or that evaluate to a constant.
Close #3407
* Changed setup.py to work with `distlib <https://pypi.org/project/distlib>`_
Close #3555
* New check: ``consider-using-generator``
This check warns when a comprehension is used inside an ``any`` or ``all`` function,
since it is unnecessary and should be replaced by a generator instead.
Using a generator would be less code and way faster.
Close #3165
* Add Github Actions to replace Travis and AppVeyor in the future
What's New in Pylint 2.6.1?
===========================
Release date: 2021-02-16
* Astroid version has been set as < 2.5
Close #4093
What's New in Pylint 2.6.0?
===========================
Release date: 2020-08-20
* Fix various scope-related bugs in ``undefined-variable`` checker
Close #1082, #3434, #3461
* bad-continuation and bad-whitespace have been removed, black or another formatter can help you with this better than Pylint
Close #246, #289, #638, #747, #1148, #1179, #1943, #2041, #2301, #2304, #2944, #3565
* The no-space-check option has been removed. It's no longer possible to consider empty line like a ``trailing-whitespace`` by using clever options
Close #1368
* ``missing-kwoa`` is no longer emitted when dealing with overload functions
Close #3655
* mixed-indentation has been removed, it is no longer useful since TabError is included directly in python3
Close #2984 #3573
* Add ``super-with-arguments`` check for flagging instances of Python 2 style super calls.
* Add an faq detailing which messages to disable to avoid duplicates w/ other popular linters
* Fix superfluous-parens false-positive for the walrus operator
Close #3383
* Fix ``fail-under`` not accepting floats
* Fix a bug with ``ignore-docstrings`` ignoring all lines in a module
* Fix ``pre-commit`` config that could lead to undetected duplicate lines of code
* Fix a crash in parallel mode when the module's filepath is not set
Close #3564
* Add ``raise-missing-from`` check for exceptions that should have a cause.
* Support both isort 4 and isort 5. If you have pinned isort 4 in your projet requirements, nothing changes. If you use isort 5, though, note that the ``known-standard-library`` option is not interpreted the same in isort 4 and isort 5 (see the migration guide in isort documentation for further details). For compatibility's sake for most pylint users, the ``known-standard-library`` option in pylint now maps to ``extra-standard-library`` in isort 5. If you really want what ``known-standard-library`` now means in isort 5, you must disable the ``wrong-import-order`` check in pylint and run isort manually with a proper isort configuration file.
Close #3722
* Fix a crash caused by not guarding against ``InferenceError`` when calling ``infer_call_result``
Close #3690
* Fix a crash in parallel mode when the module's filepath is not set
Close #3564
What's New in Pylint 2.5.3?
===========================
Release date: 2020-06-8
* Fix a regression where disable comments that have checker names with numbers in them are not parsed correctly
Close #3666
* ``property-with-parameters`` properly handles abstract properties
Close #3600
* ``continue-in-finally`` no longer emitted on Python 3.8 where it's now valid
Close #3612
* Fix a regression where messages with dash are not fully parsed
Close #3604
* In a TOML configuration file, it's now possible to use rich (non-string) types, such as list, integer or boolean instead of strings. For example, one can now define a *list* of message identifiers to enable like this::
enable = [
"use-symbolic-message-instead",
"useless-suppression",
]
Close #3538
* Fix a regression where the score was not reported with multiple jobs
Close #3547
* Protect against ``AttributeError`` when checking ``cell-var-from-loop``
Close #3646
What's New in Pylint 2.5.2?
===========================
Release date: 2020-05-05
* ``pylint.Run`` accepts ``do_exit`` as a deprecated parameter
Close #3590
What's New in Pylint 2.5.1?
===========================
Release date: 2020-05-05
* Fix a crash in ``method-hidden`` lookup for unknown base classes
Close #3527
* Revert pylint.Run's ``exit`` parameter to ``do_exit``
This has been inadvertently changed several releases ago to ``do_exit``.
Close #3533
* ``no-value-for-parameter`` variadic detection has improved for assign statements
Close #3563
* Allow package files to be properly discovered with multiple jobs
Close #3524
* Allow linting directories without ``__init__.py`` which was a regression in 2.5.
Close #3528
What's New in Pylint 2.5.0?
===========================
Release date: 2020-04-27
* Fix a false negative for ``undefined-variable`` when using class attribute in comprehension.
Close #3494
* Fix a false positive for ``undefined-variable`` when using class attribute in decorator or as type hint.
Close #511
Close #1976
* Remove HTML quoting of messages in JSON output.
Close #2769
* Adjust the ``invalid-name`` rule to work with non-ASCII identifiers and add the ``non-ascii-name`` rule.
Close #2725
* Positional-only arguments are taken in account for ``useless-super-delegation``
* ``unidiomatic-typecheck`` is no longer emitted for ``in`` and ``not in`` operators
Close #3337
* Positional-only argument annotations are taken in account for ``unused-import``
Close #3462
* Add a command to list available extensions.
* Allow used variables to be properly consumed when different checks are enabled / disabled
Close #3445
* Fix dangerous-default-value rule to account for keyword argument defaults
Close #3373
* Fix a false positive of ``self-assigning-variable`` on tuple unpacking.
Close #3433
* ``no-self-use`` is no longer emitted for typing stubs.
Close #3439
* Fix a false positive for ``undefined-variable`` when ``__class__`` is used
Close #3090
* Emit ``invalid-name`` for variables defined in loops at module level.
Close #2695
* Add a check for cases where the second argument to ``isinstance`` is not a type.
Close #3308
* Add 'notes-rgx' option, to be used for fixme check.
Close #2874
* ``function-redefined`` exempts function redefined on a condition.
Close #2410
* ``typing.overload`` functions are exempted from docstring checks
Close #3350
* Emit ``invalid-overridden-method`` for improper async def overrides.
Close #3355
* Do not allow ``python -m pylint ...`` to import user code
``python -m pylint ...`` adds the current working directory as the first element
of ``sys.path``. This opens up a potential security hole where ``pylint`` will import
user level code as long as that code resides in modules having the same name as stdlib
or pylint's own modules.
Close #3386
* Add ``dummy-variables-rgx`` option for ``_redeclared-assigned-name`` check.
Close #3341
* Fixed graph creation for relative paths
* Add a check for asserts on string literals.
Close #3284
* ``not in`` is considered iterating context for some of the Python 3 porting checkers.
* A new check ``inconsistent-quotes`` was added.
* Add a check for non string assignment to __name__ attribute.
Close #583
* ``__pow__``, ``__imatmul__``, ``__trunc__``, ``__floor__``, and ``__ceil__`` are recognized as special method names.
Close #3281
* Added errors for protocol functions when invalid return types are detected.
E0304 (invalid-bool-returned): __bool__ did not return a bool
E0305 (invalid-index-returned): __index__ did not return an integer
E0306 (invalid-repr-returned): __repr__ did not return a string
E0307 (invalid-str-returned): __str__ did not return a string
E0308 (invalid-bytes-returned): __bytes__ did not return a string
E0309 (invalid-hash-returned): __hash__ did not return an integer
E0310 (invalid-length-hint-returned): __length_hint__ did not return a non-negative integer
E0311 (invalid-format-returned): __format__ did not return a string
E0312 (invalid-getnewargs-returned): __getnewargs__ did not return a tuple
E0313 (invalid-getnewargs-ex-returned): __getnewargs_ex__ did not return a tuple of the form (tuple, dict)
Close #560
* ``missing-*-docstring`` can look for ``__doc__`` assignments.
Close #3301
* ``undefined-variable`` can now find undefined loop iterables
Close #498
* ``safe_infer`` can infer a value as long as all the paths share the same type.
Close #2503
* Add a --fail-under <score> flag, also configurable in a .pylintrc file. If the final score is more than the specified score, it's considered a success and pylint exits with exitcode 0. Otherwise, it's considered a failure and pylint exits with its current exitcode based on the messages issued.
Close #2242
* Don't emit ``line-too-long`` for multilines when ``disable=line-too-long`` comment stands at their end
Close #2957
* Fixed an ``AttributeError`` caused by improper handling of ``dataclasses`` inference in ``pyreverse``
Close #3256
* Do not exempt bare except from ``undefined-variable`` and similar checks
If a node was wrapped in a ``TryExcept``, ``pylint`` was taking a hint
from the except handler when deciding to emit or not a message.
We were treating bare except as a fully fledged ignore but only
the corresponding exceptions should be handled that way (e.g. ``NameError`` or ``ImportError``)
Close #3235
* No longer emit ``assignment-from-no-return`` when a function only raises an exception
Close #3218
* Allow import aliases to exempt ``import-error`` when used in type annotations.
Close #3178
* ``Ellipsis` is exempted from ``multiple-statements`` for function overloads.
Close #3224
* No longer emit ``invalid-name`` for non-constants found at module level.
Pylint was taking the following statement from PEP-8 too far, considering
all module level variables as constants, which is not what the statement is saying:
`Constants are usually defined on a module level and written in
all capital letters with underscores separating words.`
Close #3111
Close #3132
* Allow ``implicit-str-concat-in-sequence`` to be emitted for string juxtaposition
Close #3030
* ``implicit-str-concat-in-sequence`` was renamed ``implicit-str-concat``
* The ``json`` reporter no longer bypasses ``redirect_stdout``. Close #3227
* Move ``NoFileError``, ``OutputLine``, ``FunctionalTestReporter``,
``FunctionalTestFile``, ``LintModuleTest`` and related methods from
``test_functional.py`` to ``pylint.testutils`` to help testing for 3rd
party pylint plugins.
* Can read config from a setup.cfg or pyproject.toml file.
Close #617
* Fix exception-escape false positive with generators
Close #3128
* ``inspect.getargvalues`` is no longer marked as deprecated.
* A new check ``f-string-without-interpolation`` was added
Close #3190
* Flag mutable ``collections.*`` utilities as dangerous defaults
Close #3183
* ``docparams`` extension supports multiple types in raises sections.
Multiple types can also be separated by commas in all valid sections.
Closes #2729
* Allow parallel linting when run under Prospector
* Fixed false positives of ``method-hidden`` when a subclass defines the method that is being hidden.
Closes #414
* Python 3 porting mode is 30-50% faster on most codebases
* Python 3 porting mode no longer swallows syntax errors
Closes #2956
* Pass the actual PyLinter object to sub processes to allow using custom
PyLinter classes.
PyLinter object (and all its members except reporter) needs to support
pickling so the PyLinter object can be passed to worker processes.
* Clean up setup.py
Make pytest-runner a requirement only if running tests, similar to McCabe.
Clean up the setup.py file, resolving a number of warnings around it.
* Handle SyntaxError in files passed via ``--from-stdin`` option
Pylint no longer outputs a traceback, if a file, read from stdin,
contains a syntaxerror.
* Fix uppercase style to disallow 3+ uppercase followed by lowercase.
* Fixed ``undefined-variable`` and ``unused-import`` false positives
when using a metaclass via an attribute.
Close #1603
* Emit ``unused-argument`` for functions that partially uses their argument list before raising an exception.
Close #3246
* Fixed ``broad_try_clause`` extension to check try/finally statements and to
check for nested statements (e.g., inside of an ``if`` statement).
* Recognize classes explicitly inheriting from ``abc.ABC`` or having an
``abc.ABCMeta`` metaclass as abstract. This makes them not trigger W0223.
Closes #3098
* Fix overzealous ``arguments-differ`` when overridden function uses variadics
No message is emitted if the overriding function provides positional or
keyword variadics in its signature that can feasibly accept and pass on
all parameters given by the overridden function.
Close #1482
Close #1553
* Multiple types of string formatting are allowed in logging functions.
The ``logging-fstring-interpolation`` message has been brought back to allow
multiple types of string formatting to be used.
Close #3361
What's New in Pylint 2.4.4?
===========================
Release date: 2019-11-13
* Exempt all the names found in type annotations from ``unused-import``
The previous code was assuming that only ``typing`` names need to be
exempted, but we need to do that for the rest of the type comment
names as well.
Close #3112
* Relax type import detection for names that do not come from the ``typing`` module
Close #3191
What's New in Pylint 2.4.3?
===========================
Release date: 2019-10-18
* Fix an issue with ``unnecessary-comprehension`` in comprehensions with additional repacking of elements.
Close #3148
* ``import-outside-toplevel`` is emitted for ``ImportFrom`` nodes as well.
Close #3175
* Do not emit ``no-method-argument`` for functions using positional only args.
Close #3161
* ``consider-using-sys-exit`` is no longer emitted when ``exit`` is imported in the local scope.
Close #3147
* ``invalid-overridden-method`` takes ``abc.abstractproperty`` in account
Close #3150
* Fixed ``missing-yield-type-doc`` getting incorrectly raised when
a generator does not document a yield type but has a type annotation.
Closes #3185
* ``typing.overload`` functions are exempted from ``too-many-function-args``
Close #3170
What's New in Pylint 2.4.2?
===========================
Release date: 2019-09-30
* ``ignored-modules`` can skip submodules. Close #3135
* ``self-assigning-variable`` skips class level assignments.
Close #2930
* ``consider-using-sys-exit`` is exempted when ``exit()`` is imported from ``sys``
Close #3145
* Exempt annotated assignments without variable from ``class-variable-slots-conflict``
Close #3141
* Fix ``utils.is_error`` to account for functions returning early.
This fixes a false negative with ``unused-variable`` which was no longer triggered
when a function raised an exception as the last instruction, but the body of the function
still had unused variables.
Close #3028
What's New in Pylint 2.4.1?
===========================
Release date: 2019-09-25
* Exempt type checking definitions defined in both clauses of a type checking guard
Close #3127
* Exempt type checking definitions inside the type check guard
In a7f236528bb3758886b97285a56f3f9ce5b13a99 we added basic support
for emitting ``used-before-assignment`` if a variable was only defined
inside a type checking guard (using ``TYPE_CHECKING`` variable from `typing`)
Unfortunately that missed the case of using those type checking imports
inside the guard itself, which triggered spurious used-before-assignment errors.
Close #3119
* Require astroid >= 2.3 to avoid any compatibility issues.
What's New in Pylint 2.4.0?
===========================
Release date: 2019-09-24
* New check: ``import-outside-toplevel``
This check warns when modules are imported from places other than a
module toplevel, e.g. inside a function or a class.
* Handle inference ambiguity for ``invalid-format-index``
Close #2752
* Removed Python 2 specific checks such as ``relative-import``,
``invalid-encoded-data``, ``missing-super-argument``.
* Support forward references for ``function-redefined`` check.
Close #2540
* Handle redefinitions in case of type checking imports.
Close #2834
* Added a new check, ``consider-using-sys-exit``
This check is emitted when we detect that a quit() or exit() is invoked
instead of sys.exit(), which is the preferred way of exiting in program.
Close #2925
* ``useless-suppression`` check now ignores ``cyclic-import`` suppressions,
which could lead to false postiives due to incomplete context at the time
of the check.
Close #3064
* Added new checks, ``no-else-break`` and ``no-else-continue``
These checks highlight unnecessary ``else`` and ``elif`` blocks after
``break`` and ``continue`` statements.
Close #2327
* Don't emit ``protected-access`` when a single underscore prefixed attribute
is used inside a special method
Close #1802
* Fix the "statement" values in the PyLinter's stats reports by module.
* Added a new check, ``invalid-overridden-method``
This check is emitted when we detect that a method is overridden
as a property or a property is overridden as a method. This can indicate
a bug in the application code that will trigger a runtime error.
Close #2670
* Added a new check, ``arguments-out-of-order``
This check warns if you have arguments with names that match those in
a function's signature but you are passing them in to the function
in a different order.
Close #2975
* Added a new check, ``redeclared-assigned-name``
This check is emitted when ``pylint`` detects that a name
was assigned one or multiple times in the same assignment,
which indicate a potential bug.
Close #2898
* Ignore lambda calls with variadic arguments without a context.
Inferring variadic positional arguments and keyword arguments
will result into empty Tuples and Dicts, which can lead in
some cases to false positives with regard to no-value-for-parameter.
In order to avoid this, until we'll have support for call context
propagation, we're ignoring such cases if detected.
We already did that for function calls, but the previous fix
was not taking in consideration ``lambdas``
Close #2918
* Added a new check, ``self-assigning-variable``
This check is emitted when we detect that a variable is assigned
to itself, which might indicate a potential bug in the code application.
Close #2930
* Added a new check, ``property-with-parameters``.
This check is emitted when we detect that a defined property also
has parameters, which are useless.
Close #3006
* Excluded protocol classes from a couple of checks. Close #3002.
* Add a check ``unnecessary-comprehension`` that detects unnecessary comprehensions.
This check is emitted when ``pylint`` finds list-, set- or dict-comprehensions,
that are unnecessary and can be rewritten with the list-, set- or dict-constructors.
Close #2905
* Excluded PEP 526 instance and class variables from ``no-member``. Close #2945
* Excluded ``attrs`` from ``too-few-public-methods`` check. Close #2988.
* ``unused-import`` emitted for the right import names in function scopes.
Close #2928
* Dropped support for Python 3.4.
* ``assignment-from-no-return`` not triggered for async methods.
Close #2902
* Don't emit ``attribute-defined-outside-init`` for variables defined in setters.
Close #409
* Syntax errors report the column number.
Close #2914
* Support fully qualified typing imports for type annotations.
Close #2915
* Exclude ``__dict__`` from ``attribute-defined-outside-init``
* Fix pointer on spelling check when the error are more than one time in the same line.
Close #2895
* Fix crash happening when parent of called object cannot be determined
* Allow of in ``GoogleDocstring.re_multiple_type``
* Added ``subprocess-run-check`` to handle subrocess.run without explicitly set ``check`` keyword.
Close #2848
* When we can't infer bare except handlers, skip ``try-except-raise``
Close #2853
* Handle more ``unnecessary-lambda`` cases when dealing with additional kwargs in wrapped calls
Close #2845
* Better postponed evaluation of annotations handling
Close #2847
* Support postponed evaluation of annotations for variable annotations.
Close #2838
* ``epylint.py_run`` defaults to ``python`` in case the current executable is not a Python one.
Close #2837
* Ignore raw docstrings when running Similarities checker with ``ignore-docstrings=yes`` option
* Fix crash when calling ``inherit_from_std_ex`` on a class which is its own ancestor
Close #2680
* Added a new check that warns the user if a function call is used inside a test but parentheses are missing.
Close #2658
* ``len-as-condition`` now only fires when a ``len(x)`` call is made without an explicit comparison
The message and description accompanying this checker has been changed
reflect this new behavior, by explicitly asking to either rely on the
fact that empty sequence are false or to compare the length with a scalar.
Close #2684
* Add ``preferred-module`` checker that notify if an import has a replacement module that should be used.
This check is emitted when ``pylint`` finds an imported module that has a
preferred replacement listed in ``preferred-modules``.
* ``assigning-non-slot`` not emitted for classes with unknown base classes.
Close #2807
* ``old-division`` is not emitted for non-Const nodes.
Close #2808
* Added method arguments to the dot writer for pyreverse.
Close #2139
* Support for linting file from stdin.
IDEs may benefit from the support for linting from an in-memory file.
Close #1187
* Added a new check ``class-variable-slots-conflict``
This check is emitted when ``pylint`` finds a class variable that conflicts with a slot
name, which would raise a ``ValueError`` at runtime.
* Added new check: dict-iter-missing-items (E1141)
Close #2761
* Fix issue with pylint name in output of python -m pylint --version
Close #2764
* Relicense logo material under the CC BY-SA 4.0 license.
* Skip ``if`` expressions from f-strings for the ``check_elif`` checker
Close #2816
* C0412 (ungrouped-import) is now compatible with isort.
Close #2806
* Added new extension to detect too much code in a try clause
Close #2877
* ``signature-mutators`` option was added
With this option, users can choose to ignore ``too-many-function-args``, ``unexpected-keyword-arg``,
and ``no-value-for-parameter`` for functions decorated with decorators that change
the signature of a decorated function.
Close #259
* Fixed a pragma comment on its own physical line being ignored when part
of a logical line with the previous physical line.
Close #199
* Fixed false ``undefined-loop-variable`` for a function defined in the loop,
that uses the variable defined in that loop.
Close #202
* Fixed ``unused-argument`` and ``function-redefined`` getting raised for
functions decorated with ``typing.overload``.
Close #1581
* Fixed a false positive with ``consider-using-dict-comprehension`` for constructions that can't be converted to a comprehension
Close #2963
* Added ``__post_init__`` to ``defining-attr-methods`` in order to avoid ``attribute-defined-outside-init`` in dataclasses.
Close #2581
* Changed description of W0199 to use the term 2-item-tuple instead of 2-uple.
* Allow a ``.`` as a prefix for Sphinx name resolution.
* Checkers must now keep a 1 to 1 relationship between "msgid" (ie: C1234) and "symbol" (ie : human-readable-symbol)
* In checkers, an old_names can now be used for multiple new messages and pylint is now a little faster
Caused by #1164. It means if you do a partial old_names for a message definition an exception will tell you that you
must rename the associated identification.
* Allow the choice of f-strings as a valid way of formatting logging strings.
Closes #2395
* Added ``--list-msgs-enabled`` command to list all enabled and disabled messages given the current RC file and command line arguments.
What's New in Pylint 2.3.0?
===========================
Release date: 2019-02-27
* Protect against ``NonDeducibleTypeHierarchy`` when calling semi-private ``is_subtype``
``astroid.helpers.is_subtype`` raises ``NonDeducibleTypeHierarchy`` when it cannot infer
the base classes of the given types, but that makes sense in its context given that
the method is mostly used to inform the inference process about the hierarchy of classes.
Doesn't make that much sense for ``pylint`` itself, which is why we're handling the
exception here, rather than in ``astroid``
Close PyCQA/astroid#644
* Added a new command line option ``list-groups`` for listing all the check groups ``pylint`` knows about.
* Allow ``BaseException`` for emitting ``broad-except``, just like ``Exception``.
Close #2741
* Fixed a crash that occurred for ``bad-str-strip-call`` when ``strip()`` received ``None``
Close #2743
* Don't emit ``*-not-iterating`` checks for builtins consumed by ``itertools``
Close #2731
* Fix a crash caused by iterating over ``Uninferable`` in a string formatting check.
Close #2727
* Fixed false positives for ``no-self-argument`` and ``unsubscriptable-object`` when using ``__class_getitem__`` (new in Python 3.7)
Close #2416
* Support ``Ellipsis`` as a synonym for ``pass`` statements.
Close #2718
* ``fixme`` gets triggered only on comments.
Close #2321
* Fixed a false positive for ``unused-variable`` and ``nonlocal`` assignments
Close #2671
* Added ``load_configuration()`` hook for plugins
New optional hook for plugins is added: ``load_configuration()``.
This hook is executed after configuration is loaded to prevent
overwriting plugin specific configuration via user-based
configuration.
Close #2635
* Fix missing-raises-doc false positive (W9006)
Close #1502
* Exempt starred unpacking from ``*-not-iterating`` Python 3 checks
Close #2651
* Make ``compare-to-zero`` less zealous by checking against equality and identity
Close #2645
* Add ``no-else-raise`` warning (R1720)
Close #2558
* Exempt ``yield from`` from ``*-not-iterating`` Python 3 checks.
Close #2643
* Fix incorrect generation of ``no-else-return`` warnings (R1705)
Fixed issue where ``if`` statements with nested ``if`` statements
were incorrectly being flagged as ``no-else-return`` in some cases and
not being flagged as ``no-else-return`` in other cases. Added tests
for verification and updated pylint source files to eliminate newly
exposed warnings.
* Fix false positive with ``not-async-context-manager`` caused by not understanding ``contextlib.asynccontextmanager``
Close #2440
* Refactor ``bad-reversed-sequence`` to account for more objects that can define ``__reversed__``
One such object would be an enum class, for which ``__reversed__`` yields each individual enum.
As such, the check for ``bad-reversed-sequence`` needs to not differentiate between classes
and instances when it comes for checking of ``__reversed__`` presence.
Close #2598
* Added ``wrong-exception-operation``
Used when an operation is done against an exception, but the operation
is not valid for the exception in question. Usually emitted when having
binary operations between exceptions in except handlers.
Close #2494
* ``no-member`` is emitted for enums when they lack a member
Previously we weren't doing this because we detected a
``__getattr__`` implementation on the ``Enum`` class
(and this check is skipped for classes with ``__getattr__``),
but that is fine for Enums, given that they are inferred in a customised
way in astroid.
Close #2565
* Generalize ``chained-comparison``
Previous version incorrectly detects `a < b < c and b < d` and fails to
detect `a < b < c and c < d`.
* Avoid popping __main__ when using multiple jobs
Close #2689
* Add a new option 'check-str-concat-over-line-jumps' to check 'implicit-str-concat-in-sequence'
* Fixes for the new style logging format linter.
The number of arguments was not handled properly, leading to an always
successful check.
* Fix false positive ``not-callable`` for uninferable properties.
* Fix false positive ``useless-else-on-loop`` if the break is deep in the else
of an inner loop.
* Minor improvements to the help text for a few options.
What's New in Pylint 2.2.2?
===========================
Release date: 2018-11-28
* Change the ``logging-format-style`` to use name identifier instead of their
corresponding Python identifiers
This is to prevent users having to think about escaping the default value for
``logging-format-style`` in the generated config file. Also our config parsing
utilities don't quite support escaped values when it comes to ``choices`` detection,
so this would have needed various hacks around that.
Closes #2614
What's New in Pylint 2.2.1?
===========================
Release date: 2018-11-27
* Fix a crash caused by ``implicit-str-concat-in-sequence`` and multi-bytes characters.
Closes #2610
What's New in Pylint 2.2?
=========================
Release date: 2018-11-25
* Consider ``range()`` objects for ``undefined-loop-variable`` leaking from iteration.
Close #2533
* ``deprecated-method`` can use the attribute name for identifying a deprecated method
Previously we were using the fully qualified name, which we still do, but the fully
qualified name for some ``unittest`` deprecated aliases leads to a generic
deprecation function. Instead on relying on that, we now also rely on the attribute
name, which should solve some false positives.
Close #1653
Close #1946
* Fix compatibility with changes to stdlib tokenizer.
* ``pylint`` is less eager to consume the whole line for pragmas
Close #2485
* Obtain the correct number of CPUs for virtualized or containerized environments.
Close #2519
* Change ``unbalanced-tuple-unpacking`` back to a warning.
It used to be a warning until a couple of years ago, after it was promoted to
an error. But the check might be suggesting the wrong thing in some cases,
for instance when checking against ``sys.argv`` which cannot be known at static
analysis time. Given it might rely on potential unknown data, it's best to
have it as a warning.
Close #2522
* Remove ``enumerate`` usage suggestion when defining ``__iter__`` (C0200)
Close #2477
* Emit ``too-many-starred-assignment`` only when the number of Starred nodes is per assignment elements
Close #2513
* ``try-except-raise`` checker now handles multilevel inheritance hirerachy for exceptions correctly.
Close #2484
* Add a new check, ``simplifiable-if-expression`` for expressions like ``True if cond else False``.
Close #2487
* ``too-few-public-methods`` is not reported for ``typing.NamedTuple``
Close #2459
* ```too-few-public-methods`` is not reported for dataclasses created with options.
Close #2488
* Remove wrong modules from 'bad-python3-import'.
Close #2453
* The ``json`` reporter prints an empty list when no messages are emitted
Close #2446
* Add a new check, ``duplicate-string-formatting-argument``
This new check is emitted whenever a duplicate string formatting argument
is found.
Close #497
* ``assignment-from-no-return`` is not emitted for coroutines.
Close #1715
* Report format string type mismatches.
* ``consider-using-ternary`` and ``simplified-boolean-expression`` no longer emit for sequence based checks
Close #2473
* Handle ``AstroidSyntaxError`` when trying to import a module.
Close #2313
* Allow ``__module__`` to be redefined at a class level. Close #2451
* ``pylint`` used to emit an ``unused-variable`` error if unused import was found in the function. Now instead of
``unused-variable``, ``unused-import`` is emitted.
Close #2421
* Handle asyncio.coroutine when looking for ``not-an-iterable`` check.
Close #996
* The ``locally-enabled`` check is gone.
Close #2442
* Infer decorated methods when looking for method-hidden
Close #2369
* Pick the latest value from the inferred values when looking for ``raising-non-exception``
Close #2431
* Extend the TYPE_CHECKING guard to TYPE_CHECKING name as well, not just the attribute
Close #2411
* Ignore import x.y.z as z cases for checker ``useless-import-alias``.
Close #2309
* Fix false positive ``undefined-variable`` and ``used-before-assignment`` with nonlocal keyword usage.
Close #2049
* Stop ``protected-access`` exception for missing class attributes
* Don't emit ``assignment-from-no-return`` for decorated function nodes
Close #2385
* ``unnecessary-pass`` is now also emitted when a function or class contains only docstring and pass statement.
In Python, stubbed functions often have a body that contains just a single ``pass`` statement,
indicating that the function doesn't do anything. However, a stubbed function can also have just a
docstring, and function with a docstring and no body also does nothing.
Close #2208
* ``duplicate-argument-name`` is emitted for more than one duplicate argument per function
Close #1712
* Allow double indentation levels for more distinguishable indentations
Close #741
* Consider tuples in exception handler for ``try-except-raise``.
Close #2389
* Fix astroid.ClassDef check in checkers.utils.is_subclass_of
* Fix wildcard imports being ignored by the import checker
* Fix external/internal distinction being broken in the import graph
* Fix wildcard import check not skipping ``__init__.py``
Close #2430
* Add new option to logging checker, ``logging_format_style``
* Fix --ignore-imports to understand multi-line imports
Close #1422
Close #2019
* Add a new check 'implicit-str-concat-in-sequence' to spot string concatenation inside lists, sets & tuples.
* ``literal-comparison`` is now emitted for 0 and 1 literals.
What's New in Pylint 2.1.1?
===========================
Release date: 2018-08-07
* fix pylint crash due to ``misplaced-format-function`` not correctly handling class attribute.
Close #2384
* Do not emit \*-builtin for Python 3 builtin checks when the builtin is used inside a try-except
Close PyCQA/pylint#2228
* ``simplifiable-if-statement`` not emitted when dealing with subscripts
What's New in Pylint 2.1?
=========================
Release date: 2018-08-01
* ``trailing-comma-tuple`` gets emitted for ``yield`` statements as well.
Close #2363
* Get only the arguments of the scope function for ``redefined-argument-from-local``
Close #2364
* Add a check ``misplaced-format-function`` which is emitted if format function is used on
non str object.
Close #2200
* ``chain.from_iterable`` no longer emits `dict-{}-not-iterating` when dealing with dict values and keys
* Demote the ``try-except-raise`` message from an error to a warning (E0705 -> W0706)
Close #2323
* Correctly handle the new name of the Python implementation of the ``abc`` module.
Close PyCQA/astroid#2288
* Modules with ``__getattr__`` are exempted by default from ``no-member``
There's no easy way to figure out if a module has a particular member when
the said module uses ``__getattr__``, which is a new addition to Python 3.7.
Instead we assume the safe thing to do, in the same way we do for classes,
and skip those modules from checking.
Close #2331
* Fix a false positive ``invalid name`` message when method or attribute name is longer then 30 characters.
Close #2047
* Include the type of the next branch in ``no-else-return``
Close #2295
* Fix inconsistent behaviour for bad-continuation on first line of file
Close #2281
* Fix not being able to disable certain messages on the last line through
the global disable option
Close #2278
* Don't emit ``useless-return`` when we have a single statement that is the return itself
We still want to be explicit when a function is supposed to return
an optional value; even though ``pass`` could still work, it's not explicit
enough and the function might look like it's missing an implementation.
Close #2300
* Fix false-positive undefined-variable for self referential class name in lamdbas
Close #704
* Don't crash when ``pylint`` is unable to infer the value of an argument to ``next()``
Close #2316
* Don't emit ``not-an-iterable`` when dealing with async iterators.
But do emit it when using the usual iteration protocol against
async iterators.
Close #2311
* Can specify a default docstring type for when the check cannot guess the type
Close #1169
What's New in Pylint 2.0?
=========================
Release date: 2018-07-15
* ``try-except-raise`` should not be emitted if there are any parent exception class handlers.
Close #2284
* ``trailing-comma-tuple`` can be emitted for ``return`` statements as well.
Close #2269
* Fix a false positive ``inconsistent-return-statements`` message when exception is raised
inside an else statement.
Close #1782
* ``ImportFrom`` nodes correctly use the full name for the import sorting checks.
Close #2181
* [].extend and similar builtin operations don't emit `dict-*-not-iterating` with the Python 3 porting checker
Close #2187
* Add a check ``consider-using-dict-comprehension`` which is emitted if for dict initialization
the old style with list comprehensions is used.
* Add a check ``consider-using-set-comprehension`` which is emitted if for set initialization
the old style with list comprehensions is used.
* ``logging-not-lazy`` is emitted whenever pylint infers that a string is built with addition
Close #2193
* Add a check ``chained-comparison`` which is emitted if a boolean operation can be simplified
by chaining some of its operations.
e.g "a < b and b < c", can be simplified as "a < b < c".
Close #2032
* Add a check ``consider-using-in`` for comparisons of a variable against
multiple values with "==" and "or"s instead of checking if the variable
is contained "in" a tuple of those values.
* ``in`` is considered iterating context for some of the Python 3 porting checkers
Close #2186
* Add ``--ignore-none`` flag to control if pylint should warn about ``no-member`` where the owner is None
* Fix a false positive related to ``too-many-arguments`` and bounded ``__get__`` methods
Close #2172
* ``mcs`` as the first parameter of metaclass's ``__new__`` method was replaced by ``cls``
Close #2028
* ``assignment-from-no-return`` considers methods as well.
Close #2081
* Support typing.TYPE_CHECKING for *unused-import* errors
Close #1948
* Inferred classes at a function level no longer emit ``invalid-name``
when they don't respect the variable regular expression
Close #1049
* Added basic support for postponed evaluation of function annotations.
Close #2069
* Fix a bug with ``missing-kwoa`` and variadics parameters
Close #1111
* ``simplifiable-if-statement`` takes in account only when assigning to same targets
Close #1984
* Make ``len-as-condition`` test more cases, such as ``len() < 1`` or ``len <= 0``
* Fix false-positive ``line-too-long`` message emission for
commented line at the end of a module
Close #1950
* Fix false-positive ``bad-continuation`` for with statements
Close #461
* Don't warn about ``stop-iteration-return`` when using ``next()`` over ``itertools.count``
Close #2158
* Add a check ``consider-using-get`` for unidiomatic usage of value/default-retrieval
for a key from a dictionary
Close #2076
* invalid-slice-index is not emitted when the slice is used as index for a complex object.
We only use a handful of known objects (list, set and friends) to figure out if
we should emit invalid-slice-index when the slice is used to subscript an object.
* Don't emit ``unused-import`` anymore for typing imports used in type comments.
* Add a new check 'useless-import-alias'.
Close #2052
* Add ``comparison-with-callable`` to warn for comparison with bare callable, without calling it.
Close #2082
* Don't warn for ``missing-type-doc`` and/or ``missing-return-type-doc``, if type
annotations exist on the function signature for a parameter and/or return type.
Close #2083
* Add ``--exit-zero`` option for continuous integration scripts to more
easily call Pylint in environments that abort when a program returns a
non-zero (error) status code.
Close #2042
* Warn if the first argument of an instance/ class method gets assigned
Close #977
* New check ``comparison-with-itself`` to check comparison between same value.
Close #2051
* Add a new warning, 'logging-fstring-interpolation', emitted when f-string
is used within logging function calls.
Close #1998
* Don't show 'useless-super-delegation' if the subclass method has different type annotations.
Close #1923
* Add ``unhashable-dict-key`` check.
Closes #586
* Don't warn that a global variable is unused if it is defined by an import
Close #1453
* Skip wildcard import check for ``__init__.py``.
Close #2026
* The Python 3 porting mode can now run with Python 3 as well.
* ``too-few-public-methods`` is not emitted for dataclasses.
Close #1793
* New verbose mode option, enabled with ``--verbose`` command line flag, to
display of extra non-checker-related output. It is disabled by default.
Close #1863
* ``undefined-loop-variable`` takes in consideration non-empty iterred objects before emitting
Close #2039
* Add support for numpydoc optional return value names.
Close #2030
* ``singleton-comparison`` accounts for negative checks
Close #2037
* Add a check ``consider-using-in`` for comparisons of a variable against
multiple values with "==" and "or"s instead of checking if the variable
is contained "in" a tuple of those values.
Close #1977
* defaultdict and subclasses of dict are now handled for dict-iter-* checks
Close #2005
* ``logging-format-interpolation`` also emits when f-strings are used instead of % syntax.
Close #1788
* Don't trigger misplaced-bare-raise when the raise is in a finally clause
Close #1924
* Add a new check, ``possibly-unused-variable``.
This is similar to ``unused-variable``, the only difference is that it is
emitted when we detect a locals() call in the scope of the unused variable.
The ``locals()`` call could potentially use the said variable, by consuming
all values that are present up to the point of the call. This new check
allows to disable this error when the user intentionally uses ``locals()``
to consume everything.
Close #1909.
* ``no-else-return`` accounts for multiple cases
The check was a bit overrestrictive because we were checking for
return nodes in the .orelse node. At that point though the if statement
can be refactored to not have the orelse. This improves the detection of
other cases, for instance it now detects TryExcept nodes that are part of
the .else branch.
Close #1852
* Added two new checks, ``invalid-envvar-value`` and ``invalid-envvar-default``.
The former is trigger whenever pylint detects that environment variable manipulation
functions uses a different type than strings, while the latter is emitted whenever
the said functions are using a default variable of different type than expected.
* Add a check ``consider-using-join`` for concatenation of strings using str.join(sequence)
Close #1952
* Add a check ``consider-swap-variables`` for swapping variables with tuple unpacking
Close #1922
* Add new checker ``try-except-raise`` that warns the user if an except handler block
has a ``raise`` statement as its first operator. The warning is shown when there is
a bare raise statement, effectively re-raising the exception that was caught or the
type of the exception being raised is the same as the one being handled.
* Don't crash on invalid strings when checking for ``logging-format-interpolation``
Close #1944
* Exempt ``__doc__`` from triggering a ``redefined-builtin``
``__doc__`` can be used to specify a docstring for a module without
passing it as a first-statement string.
* Fix false positive bad-whitespace from function arguments with default
values and annotations
Close #1831
* Fix stop-iteration-return false positive when next builtin has a
default value in a generator
Close #1830
* Fix emission of false positive ``no-member`` message for class with "private" attributes whose name is mangled.
Close #1643
* Fixed a crash which occurred when ``Uninferable`` wasn't properly handled in ``stop-iteration-return``
Close #1779
* Use the proper node to get the name for redefined functions (#1792)
Close #1774
* Don't crash when encountering bare raises while checking inconsistent returns
Close #1773
* Fix a false positive ``inconsistent-return-statements`` message when if statement is inside try/except.
Close #1770
* Fix a false positive ``inconsistent-return-statements`` message when while loop are used.
Close #1772
* Correct column number for whitespace conventions.
Previously the column was stuck at 0
Close #1649
* Fix ``unused-argument`` false positives with overshadowed variable in
dictionary comprehension.
Close #1731
* Fix false positive ``inconsistent-return-statements`` message when never
returning functions are used (i.e sys.exit for example).
Close #1771
* Fix error when checking if function is exception, as in ``bad-exception-context``.
* Fix false positive ``inconsistent-return-statements`` message when a
function is defined under an if statement.
Close #1794
* New ``useless-return`` message when function or method ends with a "return" or
"return None" statement and this is the only return statement in the body.
* Fix false positive ``inconsistent-return-statements`` message by
avoiding useless exception inference if the exception is not handled.
Close #1794 (second part)
* Fix bad thread instantiation check when target function is provided in args.
Close #1840
* Fixed false positive when a numpy Attributes section follows a Parameters
section
Close #1867
* Fix incorrect file path when file absolute path contains multiple ``path_strip_prefix`` strings.
Close #1120
* Fix false positive undefined-variable for lambda argument in class definitions
Close #1824
* Add of a new checker that warns the user if some messages are enabled or disabled
by id instead of symbol.
Close #1599
* Suppress false-positive ``not-callable`` messages from certain
staticmethod descriptors
Close #1699
* Fix indentation handling with tabs
Close #1148
* Fix false-positive ``bad-continuation`` error
Close #638
* Fix false positive unused-variable in lambda default arguments
Close #1921
Close #1552
Close #1099
Close #210
* Updated the default report format to include paths that can be clicked on in some terminals (e.g. iTerm).
* Fix inline def behavior with ``too-many-statements`` checker
Close #1978
* Fix ``KeyError`` raised when using docparams and NotImplementedError is documented.
Close #2102
* Fix 'method-hidden' raised when assigning to a property or data descriptor.
* Fix emitting ``useless-super-delegation`` when changing the default value of keyword arguments.
Close #2022
* Expand ignored-argument-names include starred arguments and keyword arguments
Close #2214
* Fix false-positive undefined-variable in nested lambda
Close #760
* Fix false-positive ``bad-whitespace`` message for typing annoatations
with ellipses in them
Close 1992
* Broke down "missing-docstrings" between "module", "class" and "function"
For this to work we had to make multiple messages with the same old name
possible.
Closes #1164
What's New in Pylint 1.9?
=========================
Release date: 2018-05-15
* Added two new Python 3 porting checks, ``exception-escape`` and ``comprehension-escape``
These two are emitted whenever pylint detects that a variable defined in the
said blocks is used outside of the given block. On Python 3 these values are deleted.
* Added a new ``deprecated-sys-function``, emitted when accessing removed sys members.
* Added ``xreadlines-attribute``, emitted when the ``xreadlines()`` attribute is accessed.
* The Python 3 porting mode can now run with Python 3 as well.
* docparams extension allows abstract methods to document what overriding
implementations should return, and to raise NotImplementedError without
documenting it.
Closes #2044
* Special methods do not count towards ``too-few-methods``,
and are considered part of the public API.
* Enum classes do not trigger ``too-few-methods``
Close #605
* Added a new Python 2/3 check for accessing ``operator.div``, which is removed in Python 3
Close #1936
* Added a new Python 2/3 check for accessing removed urllib functions
Close #1997
What's New in Pylint 1.8.1?
===========================
Release date: 2017-12-15
* Wrong version number in __pkginfo__.
What's New in Pylint 1.8?
=========================
Release date: 2017-12-15
* Respect disable=... in config file when running with --py3k.
* New warning ``shallow-copy-environ`` added
Shallow copy of os.environ doesn't work as people may expect. os.environ
is not a dict object but rather a proxy object, so any changes made
on copy may have unexpected effects on os.environ
Instead of copy.copy(os.environ) method os.environ.copy() should be
used.
See https://bugs.python.org/issue15373 for details.
Close #1301
* Do not display no-absolute-import warning multiple times per file.
* ``trailing-comma-tuple`` refactor check now extends to assignment with
more than one element (such as lists)
Close #1713
* Fixing u'' string in superfluous-parens message
Close #1420
* ``abstract-class-instantiated`` is now emitted for all inference paths.
Close #1673
* Add set of predefined naming style to ease configuration of checking
naming conventions.
Closes #1013
* Added a new check, ``keyword-arg-before-vararg``
This is emitted for function definitions
in which keyword arguments are placed before variable
positional arguments (\*args).
This may lead to args list getting modified if keyword argument's value
is not provided in the function call assuming it will take default value
provided in the definition.
* The ``invalid-name`` check contains the name of the template that caused the failure
Close #1176
* Using the -j flag won't start more child linters than needed.
Contributed by Roman Ivanov in #1614
* Fix a false positive with bad-python3-import on relative imports
Close #1608
* Added a new Python 3 check, ``non-ascii-bytes-literals``
Close #1545
* Added a couple of new Python 3 checks for accessing dict methods in non-iterable context
* Protocol checks (not-a-mapping, not-an-iterable and co.) aren't emitted on classes with dynamic getattr
* Added a new warning, 'bad-thread-instantiation'
This message is emitted when the threading.Thread class does not
receive the target argument, but receives just one argument, which
is by default the group parameter.
Close #1327
* In non-quiet mode, absolute path of used config file is logged to
standard error.
Close #1519
* Raise meaningful exception for invalid reporter class being selected
When unknown reporter class will be selected as Pylint reporter,
meaningful error message would be raised instead of bare ``ImportError``
or ``AttribueError`` related to module or reporter class being not found.
Close #1388
* Added a new Python 3 check for accessing removed functions from itertools
like ``izip`` or ``ifilterfalse``
* Added a new Python 3 check for accessing removed fields from the types
module like ``UnicodeType`` or ``XRangeType``
* Added a new Python 3 check for declaring a method ``next`` that would have
been treated as an iterator in Python 2 but a normal function in Python 3.
* Added a new key-value pair in json output. The key is ``message-id``
and the value is the message id.
Close #1512
* Added a new Python 3.0 check for raising a StopIteration inside a generator.
The check about raising a StopIteration inside a generator is also valid if the exception
raised inherit from StopIteration.
Close #1385
* Added a new warning, ``raising-format-tuple``, to detect multi-argument
exception construction instead of message string formatting.
* Added a new check for method of logging module that concatenate string via + operator
Close #1479
* Added parameter for limiting number of suggestions in spellchecking checkers
* Fix a corner-case in ``consider-using-ternary`` checker.
When object ``A`` used in ``X and A or B`` was falsy in boolean context,
Pylint incorrectly emitted non-equivalent ternary-based suggestion.
After a change message is correctly not emitted for this case.
Close #1559
* Added ``suggestion-mode`` configuration flag. When flag is enabled, informational
message is emitted instead of cryptic error message for attributes accessed on
c-extensions.
Close #1466
* Fix a false positive ``useless-super-delegation`` message when
parameters default values are different from those used in the base class.
Close #1085
* Disabling 'wrong-import-order', 'wrong-import-position', or
'ungrouped-imports' for a single line now prevents that line from
triggering violations on subsequent lines.
Close #1336
* Added a new Python check for inconsistent return statements inside method or function.
Close #1267
* Fix ``superfluous-parens`` false positive related to handling logical statements
involving ``in`` operator.
Close #574
* ``function-redefined`` message is no longer emitted for functions and
methods which names matches dummy variable name regular expression.
Close #1369
* Fix ``missing-param-doc`` and ``missing-type-doc`` false positives when
mixing ``Args`` and ``Keyword Args`` in Google docstring.
Close #1409
* Fix ``missing-docstring`` false negatives when modules, classes, or methods
consist of compound statements that exceed the ``docstring-min-length``
* Fix ``useless-else-on-loop`` false positives when break statements are
deeply nested inside loop.
Close #1661
* Fix no ``wrong-import-order`` message emitted on ordering of first and third party
libraries. With this fix, pylint distinguishes third and first party
modules when checking import order.
Close #1702
* Fix ``pylint disable=fixme`` directives ignored for comments following the
last statement in a file.
Close #1681
* Fix ``line-too-long`` message deactivated by wrong disable directive.
The directive ``disable=fixme`` doesn't deactivate anymore the emission
of ``line-too-long`` message for long commented lines.
Close #1741
* If the rcfile specified on the command line doesn't exist, then an
IOError exception is raised.
Close #1747
* Fix the wrong scope of the ``disable=`` directive after a commented line.
For example when a ``disable=line-too-long`` directive is at the end of
a long commented line, it no longer disables the emission of ``line-too-long``
message for lines that follow.
Close #1742
What's New in Pylint 1.7.1?
===========================
Release date: 2017-04-17
* Fix a false positive which occurred when an exception was reraised
Close #1419
* Fix a false positive of ``disallow-trailing-tuple``
The check was improved by verifying for non-terminating newlines, which
should exempt function calls and function definitions from the check
Close #1424
What's New in Pylint 1.7?
=========================
Release date: 2017-04-13
* Don't emit missing-final-newline or trailing-whitespace for formfeeds (page breaks).
Close #1218 and #1219
* Don't emit by default no-member if we have opaque inference objects in the inference results
This is controlled through the new flag ignore-on-opaque-inference, which is by
default True. The inference can return multiple potential results while
evaluating a Python object, but some branches might not be evaluated, which
results in partial inference. In that case, it might be useful to still emit
no-member and other checks for the rest of the inferred objects.
* Added new message ``assign-to-new-keyword`` to warn about assigning to names which
will become a keyword in future Python releases.
Close #1351
* Split the 'missing or differing' in parameter documentation in different error.
'differing-param-doc' covers the differing part of the old 'missing-param-doc',
and 'differing-type-doc' covers the differing part of the old 'missing-type-doc'
Close #1342
* Added a new error, 'used-prior-global-declaration', which is emitted when a name
is used prior a global declaration in a function. This causes a SyntaxError in
Python 3.6
Close #1257
* The protocol checks are emitting their messages when a special method is set to None.
Close #1263
* Properly detect if imported name is assigned to same name in different
scope.
Close #636, #848, #851, and #900
* Require one space for annotations with type hints, as per PEP 8.
* 'trailing-comma-tuple' check was added
This message is emitted when pylint finds an one-element tuple,
created by a stray comma. This can suggest a potential problem in the
code and it is recommended to use parentheses in order to emphasise the
creation of a tuple, rather than relying on the comma itself.
* Don't emit not-callable for instances with unknown bases.
Close #1213
* Treat keyword only arguments the same as positional arguments with regard to unused-argument check
* Don't try to access variables defined in a separate scope when checking for ``protected-access``
* Added new check to detect incorrect usage of len(SEQUENCE) inside
test conditions.
* Added new extension to detect comparisons against empty string constants
* Added new extension to detect comparisons of integers against zero
* Added new error conditions for 'bad-super-call'
Now detects ``super(type(self), self)`` and ``super(self.__class__, self)``
which can lead to recursion loop in derived classes.
* PyLinter.should_analyze_file has a new optional parameter, called ``is_argument``
Close #1079
* Add attribute hints for missing members
Closes #1035
* Add a new warning, 'redefined-argument-from-local'
Closes #649
* Support inline comments for comma separated values in the config file
Closes #1024
* epylint.py_run's *script* parameter was removed.
* epylint.py_run now uses ``shell=False`` for running the underlying process.
Closes #441
* Added a new warning, 'useless-super-delegation'
Close 839.
* Added a new error, 'invalid-metaclass', raised when
we can detect that a class is using an improper metaclass.
Close #579
* Added a new refactoring message, 'literal-comparison'.
Close #786
* arguments-differ takes in consideration kwonlyargs and variadics
Close #983
* Removed --optimized-ast. Part of #975.
* Removed --files-output option. Part of #975.
* Removed pylint-gui from the package.
* Removed the HTML reporter. Part of #975.
* ignored-argument-names is now used for ignoring arguments for unused-variable check.
This option was used for ignoring arguments when computing the correct number of arguments
a function should have, but for handling the arguments with regard
to unused-variable check, dummy-variables-rgx was used instead. Now, ignored-argument-names
is used for its original purpose and also for ignoring the matched arguments for
the unused-variable check. This offers a better control of what should be ignored
and how.
Also, the same option was moved from the design checker to the variables checker,
which means that the option now appears under the ``[VARIABLES]`` section inside
the configuration file.
Close #862.
* Fix a false positive for keyword variadics with regard to keyword only arguments.
If a keyword only argument was necessary for a function, but that function was called
with keyword variadics (\**kwargs), then we were emitting a missing-kwoa false positive,
which is now fixed.
Close #934.
* Fix some false positives with unknown sized variadics.
Close #878
* Added a new extension, check_docstring, for checking PEP 257 conventions.
Closes #868.
* config files with BOM markers can now be read.
Close #864.
* epylint.py_run does not crash on big files, using .communicate() instead of .wait()
Close #599
* Disable reports by default and show the evaluation score by default
As per discussion from issue #746, the reports were disabled by
default in order to simplify the interaction between the tool
and the users. The score is still shown by default, as a way of
closely measuring when it increases or decreases due to changes
brought to the code.
* Disable the information category messages by default.
This is a step towards making pylint more sane, as
per the discussion from issue #746.
* Catch more cases as not proper iterables for __slots__ with
regard to invalid-slots pattern. Closes issue #775.
* empty indent strings are rejected.
* Added a new error, 'relative-beyond-top-level', which is emitted
when a relative import was attempted beyond the top level package.
Closes issue #588.
* Added a new warning, 'unsupported-assignment-operation', which is
emitted when item assignment is tried on an object which doesn't
have this ability. Closes issue #591.
* Added a new warning, 'unsupported-delete-operation', which is
emitted when item deletion is tried on an object which doesn't
have this ability. Closes issue #592.
* Fix a false positive of 'redundant-returns-doc', occurred when the documented
function was using *yield* instead of *return*.
Closes issue #984.
* Fix false positives of 'missing-[raises|params|type]-doc' due to not
recognizing keyword synonyms supported by Sphinx.
* Added a new refactoring message, 'consider-merging-isinstance', which is
emitted whenever we can detect that consecutive isinstance calls can be
merged together.
Closes issue #968
* Fix a false positive of 'missing-param-doc' and 'missing-type-doc',
occurred when a class docstring uses the 'For the parameters, see'
magic string but the class __init__ docstring does not, or vice versa.
* ``redefined-outer-name`` is now also emitted when a nested loop's target
variable is the same as a target variable in an outer loop.
Closes issue #911.
* Added proper exception type inference for 'missing-raises-doc'.
* Added InvalidMessageError exception class to replace asserts in
pylint.utils.
* More thorough validation in MessagesStore.register_messages() to avoid
one message accidentally overwriting another.
* InvalidMessageError, UnknownMessage, and EmptyReport exceptions are
moved to the new pylint.exceptions submodule.
* UnknownMessage and EmptyReport are renamed to UnknownMessageError and
EmptyReportError.
* Warnings 'missing-returns-type-doc' and 'missing-yields-type-doc'
have each been split into two warnings - 'missing-[return|yield]-doc'
and 'missing-[return|yield]-type-doc'.
* Added epytext support to docparams extension.
Closes #1029.
* Support having plugins with the same name and with options defined
Closes #1018
* Sort configuration options in a section
Closes #1087
* Added a new Python 3 warning around implementing '__div__', '__idiv__', or
'__rdiv__' as those methods are phased out in Python 3.
* Added a new warning, 'overlapping-except', which is
emitted when two exceptions in the same except-clause are aliases
for each other or one exceptions is an ancestor of another.
* Avoid crashing on ill-formatted strings when checking for string formatting errors.
* Added a new Python 3 warning for calling 'str.encode' or 'str.decode' with a non-text
encoding.
* Added new coding convention message, 'single-string-used-for-slots'.
Closes #1166
* Added a new Python 3 check for accessing 'sys.maxint' which was removed in Python 3 in favor
of 'sys.maxsize'
* Added a new Python 3 check for bad imports.
* Added a new Python 3 check for accessing deprecated string functions.
* Do not warn about unused arguments or function being redefined in singledispatch
registered implementations.
Closes #1032 and #1034
* Added refactoring message 'no-else-return'.
* Improve unused-variable checker to warn about unused variables in module scope.
Closes #919
* Ignore modules import as _ when checking for unused imports.
Closes #1190
* Improve handing of Python 3 classes with metaclasses declared in nested scopes.
Closes #1177
* Added refactoring message 'consider-using-ternary'.
Closes #1204
* Bug-fix for false-positive logging-format-interpolation` when format specifications
are used in formatted string.
Fixes #572
* Added a new switch ``single-line-class-stmt`` to allow single-line declaration
of empty class bodies.
Closes #738
* Protected access in form ``type(self)._attribute`` are now allowed.
Fixes #1031
* Let the user modify msg-template when Pylint is called from a Python script
Fixes #1269
* Imports checker supports new switch ``allow-wildcard-with-all`` which disables
warning on wildcard import when imported module defines ``__all__`` variable.
Fixes #831
* ``too-many-format-args`` and ``too-few-format-args`` are emitted correctly when
starred expression are used in RHS tuple.
Fixes #957
* ``cyclic-import`` checker supports local disable clauses. When one
of cycle imports was done in scope where disable clause was active,
cycle is not reported as violation.
Fixes #59
What's new in Pylint 1.6.3?
===========================
Release date: 2016-07-18
* Do not crash when inferring uninferable exception types for docparams extension
Close #998
What's new in Pylint 1.6.2?
===========================
Release date: 2016-07-15
* Do not crash when printing the help of options with default regular expressions
Close #990
* More granular versions for deprecated modules.
Close #991
What's new in Pylint 1.6.1?
===========================
Release date: 2016-07-07
* Use environment markers for supporting conditional dependencies.
What's New in Pylint 1.6.0?
===========================
Release date: 2016-07-03
* Added a new extension, ``pylint.extensions.mccabe``, for warning
about complexity in code.
* Deprecate support for --optimize-ast. Part of #975.
* Deprecate support for the HTML output. Part of #975.
* Deprecate support for --output-files. Part of #975.
* Fixed a documentation error for the check_docs extension. Fixes #735.
* Made the list of property-defining decorators configurable.
* Fix a bug where the top name of a qualified import was detected as unused variable.
Close #923.
* bad-builtin is now an extension check.
* generated-members support qualified name through regular expressions.
For instance, one can specify a regular expression as --generated-members=astroid.node_classes.*
for ignoring every no-member error that is accessed as in ``astroid.node_classes.missing.object``.
* Add the ability to ignore files based on regex matching, with the new ``--ignore-patterns``
option.
This addresses issue #156 by allowing for multiple ignore patterns
to be specified. Rather than clobber the existing ignore option, we
introduced a new one called ignore-patterns.
* Added a new error, 'trailing-newlines', which is emitted when a file
has trailing new lines.
Closes issue #682.
* Add a new option, 'redefining-builtins-modules', for controlling the modules
which can redefine builtins, such as six.moves and future.builtins.
Close #464.
* 'reimported' is emitted when the same name is imported from different module.
Close #162.
* Add a new recommendation checker, 'consider-iterating-dictionary', which is emitted
which is emitted when a dictionary is iterated through .keys().
Close #699
* Use the configparser backport for Python 2
This fixes a problem we were having with comments inside values, which is fixed
in Python 3's configparser.
Close #828
* A new error was added, 'invalid-length-returned', when the ``__len__``
special method returned something else than a non-negative number.
Close issue #557
* Switch to using isort internally for wrong-import-order.
Closes #879.
* check_docs extension can find constructor parameters in __init__.
Closes #887.
* Don't warn about invalid-sequence-index if the indexed object has unknown base
classes.
Closes #867
* Don't crash when checking, for super-init-not-called, a method defined in an if block.
* Do not emit import-error or no-name-in-module for fallback import blocks by default.
Until now, we warned with these errors when a fallback import block (a TryExcept block
that contained imports for Python 2 and 3) was found, but this gets cumbersome when
trying to write compatible code. As such, we don't check these blocks by default,
but the analysis can be enforced by using the new ``--analyse-fallback-block`` flag.
Close #769.
What's New in Pylint 1.5.5?
===========================
Release date: 2016-03-21
* Let visit_importfrom from Python 3 porting checker be called when everything is disabled
Because the visit method was filtering the patterns it was expecting to be activated,
it didn't run when everything but one pattern was disabled, leading to spurious false
positives
Close #852
* Don't emit unsubscriptable-value for classes with unknown
base classes.
Close #776.
* Use an OrderedDict for storing the configuration elements
This fixes an issue related to impredictible order of the disable / enable
elements from a config file. In certain cases, the disable was coming before
the enable which resulted in classes of errors to be enabled, even though the intention
was to disable them. The best example for this was in the context of running multiple
processes, each one of it having different enables / disables that affected the output.
Close #815
* Don't consider bare and broad except handlers as ignoring NameError,
AttributeError and similar exceptions, in the context of checkers for
these issues.
Closes issue #826
What's New in Pylint 1.5.4?
===========================
Release date: 2016-01-15
* Merge StringMethodChecker with StringFormatChecker. This fixes a
bug where disabling all the messages and enabling only a handful of
messages from the StringFormatChecker would have resulted in no
messages at all.
* Don't apply unneeded-not over sets.
What's New in Pylint 1.5.3?
===========================
Release date: 2016-01-11
* Handle the import fallback idiom with regard to wrong-import-order.
Closes issue #750.
* Decouple the displaying of reports from the displaying of messages
Some reporters are aggregating the messages instead of displaying
them when they are available. The actual displaying was conflatted
in the generate_reports. Unfortunately this behaviour was flaky
and in the case of the JSON reporter, the messages weren't shown
at all if a file had syntax errors or if it was missing.
In order to fix this, the aggregated messages can now be
displayed with Reporter.display_message, while the reports are
displayed with display_reports.
Closes issues #766 and #765.
* Ignore function calls with variadic arguments without a context.
Inferring variadic positional arguments and keyword arguments
will result into empty Tuples and Dicts, which can lead in
some cases to false positives with regard to no-value-for-parameter.
In order to avoid this, until we'll have support for call context
propagation, we're ignoring such cases if detected.
Closes issue #722.
* Treat AsyncFunctionDef just like FunctionDef nodes,
by implementing visit_asyncfunctiondef in terms of
visit_functiondef.
Closes issue #767.
* Take in account kwonlyargs when verifying that arguments
are defined with the check_docs extension.
Closes issue #745.
* Suppress reporting 'unneeded-not' inside ``__ne__`` methods
Closes issue #749.
What's New in Pylint 1.5.2?
===========================
Release date: 2015-12-21
* Don't crash if graphviz is not installed, instead emit a
warning letting the user to know.
Closes issue #168.
* Accept only functions and methods for the deprecated-method checker.
This prevents a crash which can occur when an object doesn't have
.qname() method after the inference.
* Don't emit super-on-old-class on classes with unknown bases.
Closes issue #721.
* Allow statements in ``if`` or ``try`` blocks containing imports.
Closes issue #714.
What's New in Pylint 1.5.1?
===========================
Release date: 2015-12-02
* Fix a crash which occurred when old visit methods are encountered
in plugin modules. Closes issue #711.
* Add wrong-import-position to check_messages's decorator arguments
for ImportChecker.leave_module
This fixes an esoteric bug which occurs when ungrouped-imports and
wrong-import-order are disabled and pylint is executed on multiple files.
What happens is that without wrong-import-position in check_messages,
leave_module will never be called, which means that the first non-import node
from other files might leak into the current file,
leading to wrong-import-position being emitted by pylint.
* Fix a crash which occurred when old visit methods are encountered
in plugin modules. Closes issue #711.
* Don't emit import-self and cyclic-import for relative imports
of modules with the same name as the package itself.
Closes issues #708 and #706.
What's New in Pylint 1.5.0?
===========================
Release date: 2015-11-29
* Added multiple warnings related to imports. 'wrong-import-order'
is emitted when PEP 8 recommendations regarding imports are not
respected (that is, standard imports should be followed by third-party
imports and then by local imports). 'ungrouped-imports' is emitted
when imports from the same package or module are not placed
together, but scattered around in the code. 'wrong-import-position'
is emitted when code is mixed with imports, being recommended for the
latter to be at the top of the file, in order to figure out easier by
a human reader what dependencies a module has.
Closes issue #692.
* Added a new refactoring warning, 'unneeded-not', emitted
when an expression with the not operator could be simplified.
Closes issue #670.
* Added a new refactoring warning, 'simplifiable-if-statement',
used when an if statement could be reduced to a boolean evaluation
of its test. Closes issue #698.
* Added a new refactoring warning, 'too-many-boolean-expressions',
used when an if statement contains too many boolean expressions,
which makes the code less maintainable and harder to understand.
Closes issue #677.
* Property methods are shown as attributes instead of functions in
pyreverse class diagrams. Closes Issue #284
* Add a new refactoring error, 'too-many-nested-blocks', which is emitted
when a function or a method has too many nested blocks, which makes the
code less readable and harder to understand. Closes issue #668.
* Add a new error, 'unsubscriptable-object', that is emitted when
value used in subscription expression doesn't support subscription
(i.e. doesn't define __getitem__ method).
* Don't warn about abstract classes instantiated in their own
body. Closes issue #627.
* Obsolete options are not present by default in the generated
configuration file. Closes issue #632.
* non-iterator-returned can detect classes with iterator-metaclasses.
Closes issue #679.
* Add a new error, 'unsupported-membership-test', emitted when value
to the right of the 'in' operator doesn't support membership test
protocol (i.e. doesn't define __contains__/__iter__/__getitem__)
* Add new errors, 'not-an-iterable', emitted when non-iterable value
is used in an iterating context (starargs, for-statement,
comprehensions, etc), and 'not-a-mapping', emitted when non-mapping
value is used in a mapping context. Closes issue #563.
* Make 'no-self-use' checker not emit a warning if there is a 'super()'
call inside the method.
Closes issue #667.
* Add checker to identify multiple imports on one line.
Closes issue #598.
* Fix unused-argument false positive when the "+=" operator is used.
Closes issue #518.
* Don't emit import-error for ignored modules. PyLint will not emit import
errors for any import which is, or is a subpackage of, a module in
the ignored-modules list. Closes issue #223.
* Fix unused-import false positive when the import is used in a
class assignment. Closes issue #475
* Add a new error, 'not-context-manager', emitted when something
that doesn't implement __enter__ and __exit__ is used in a with
statement.
* Add a new warning, 'confusing-with-statement', emitted by the
base checker, when an ambiguous looking with statement is used.
For example `with open() as first, second` which looks like a
tuple assignment but is actually 2 context managers.
* Add a new warning, 'duplicate-except', emitted when there is an
exception handler which handles an exception type that was handled
before. Closes issue #485.
* A couple of warnings got promoted to errors, since they could uncover
potential bugs in the code. These warnings are: assignment-from-none,
unbalanced-tuple-unpacking, unpacking-non-sequence, non-iterator-returned.
Closes issue #388.
* Allow ending a pragma control with a semicolon. In this way, users
can continue a pragma control with a reason for why it is used,
as in `# pylint: disable=old-style-class;reason=...`.
Closes issue #449.
* --jobs can be used with --load-plugins now. Closes issue #456.
* Improve the performance of --jobs when dealing only with a package
name. Closes issue #479.
* Don't emit an unused-wildcard-import when the imported name comes
from another module and it is in fact a __future__ name.
* The colorized reporter now works on Windows. Closes issue #96.
* Remove pointless-except warning. It was previously disabled by
default and it wasn't very useful. Closes issue #506.
* Fix a crash on Python 3 related to the string checker, which
crashed when it encountered a bytes string with a .format
method called.
* Don't warn about no-self-use for builtin properties.
* Fix a false positive for bad-reversed-sequence, when a subclass
of a ``dict`` provides a __reversed__ method.
* Change the default no-docstring-rgx so missing-docstring isn't
emitted for private functions.
* Don't emit redefined-outer-name for __future__ directives.
Closes issue #520.
* Provide some hints for the bad-builtin message. Closes issue #522.
* When checking for invalid arguments to a callable, in typecheck.py,
look up for the __init__ in case the found __new__ comes from builtins.
Since the __new__ comes from builtins, it will not have attached any
information regarding what parameters it expects, so the check
will be useless. Retrieving __init__ in that case will at least
detect a couple of false negatives. Closes issue #429.
* Don't emit no-member for classes with unknown bases.
Since we don't know what those bases might add, we simply ignore
the error in this case.
* Lookup in the implicit metaclass when checking for no-member,
if the class in question has an implicit metaclass, which is
True for new style classes. Closes issue #438.
* Add two new warnings, duplicate-bases and inconsistent-mro.
duplicate-bases is emitted when a class has the same bases
listed more than once in its bases definition, while inconsistent-mro
is emitted when no sane mro hierarchy can be determined. Closes issue #526.
* Remove interface-not-implemented warning. Closes issue #532.
* Remove the rest of interface checks: interface-is-not-class,
missing-interface-method, unresolved-interface. The reason is that
its better to start recommending ABCs instead of the old Zope era
of interfaces. One side effect of this change is that ignore-iface-methods
becomes a noop, it's deprecated and it will be removed at some time.
* Emit a proper deprecation warning for reporters.BaseReporter.add_message.
The alternative way is to use handle_message. add_message will be removed in
Pylint 1.6.
* Added new module 'extensions' for optional checkers with the test
directory 'test/extensions' and documentation file 'doc/extensions.rst'.
* Added new checker 'extensions.check_docs' that verifies parameter
documentation in Sphinx, Google, and Numpy style.
* Detect undefined variable cases, where the "definition" of an undefined
variable was in del statement. Instead of emitting used-before-assignment,
which is totally misleading, it now emits undefined-variable.
Closes issue #528.
* Don't emit attribute-defined-outside-init and access-member-before-definition
for mixin classes. Actual errors can occur in mixin classes, but this is
controlled by the ignore-mixin-members option. Closes issue #412.
* Improve the detection of undefined variables and variables used before
assignment for variables used as default arguments to function,
where the variable was first defined in the class scope.
Closes issue #342 and issue #404.
* Add a new warning, 'unexpected-special-method-signature', which is emitted
when a special method (dunder method) doesn't have the expected signature,
which can lead to actual errors in the application code.
Closes issue #253.
* Remove 'bad-context-manager' due to the inclusion of 'unexpected-special-method-signature'.
* Don't emit no-name-in-module if the import is guarded by an ImportError, Exception or
a bare except clause.
* Don't emit no-member if the attribute access node is protected by an
except handler, which handles AttributeError, Exception or it is a
bare except.
* Don't emit import-error if the import is guarded by an ImportError, Exception or a
bare except clause.
* Don't emit undefined-variable if the node is guarded by a NameError, Exception
or bare except clause.
* Add a new warning, 'using-constant-test', which is emitted when a conditional
statement (If, IfExp) uses a test which is always constant, such as numbers,
classes, functions etc. This is most likely an error from the user's part.
Closes issue #524.
* Don't emit 'raising-non-exception' when the exception has unknown
bases. We don't know what those bases actually are and it's better
to assume that the user knows what he is doing rather than emitting
a message which can be considered a false positive.
* Look for a .pylintrc configuration file in the current folder,
if pylintrc is not found. Dotted pylintrc files will not be searched
in the parents of the current folder, as it is done for pylintrc.
* Add a new error, 'invalid-unary-type-operand', emitted when
an unary operand is used on something which doesn't support that
operation (for instance, using the unary bitwise inversion operator
on an instance which doesn't implement __invert__).
* Take in consideration differences between arguments of various
type of functions (classmethods, staticmethods, properties)
when checking for ``arguments-differ``. Closes issue #548.
* astroid.inspector was moved to pylint.pyreverse, since it belongs
there and it doesn't need to be in astroid.
* astroid.utils.LocalsVisitor was moved to pylint.pyreverse.LocalsVisitor.
* pylint.checkers.utils.excepts_import_error was removed.
Use pylint.chekcers.utils.error_of_type instead.
* Don't emit undefined-all-variables for nodes which can't be
inferred (YES nodes).
* yield-outside-func is also emitted for ``yield from``.
* Add a new error, 'too-many-star-expressions', emitted when
there are more than one starred expression (`*x`) in an assignment.
The warning is emitted only on Python 3.
* Add a new error, 'invalid-star-assignment-target', emitted when
a starred expression (`*x`) is used as the lhs side of an assignment,
as in `*x = [1, 2]`. This is not a SyntaxError on Python 3 though.
* Detect a couple of objects which can't be base classes (bool,
slice, range and memoryview, which weren't detected until now).
* Add a new error for the Python 3 porting checker, ``import-star-module-level``,
which is used when a star import is detected in another scope than the
module level, which is an error on Python 3. Using this will emit a
SyntaxWarning on Python 2.
* Add a new error, 'star-needs-assignment-target', emitted on Python 3 when
a Starred expression (`*x`) is not used in an assignment target. This is not
caught when parsing the AST on Python 3, so it needs to be a separate check.
* Add a new error, 'unsupported-binary-operation', emitted when
two a binary arithmetic operation is executed between two objects
which don't support it (a number plus a string for instance).
This is currently disabled, since the it exhibits way too many false
positives, but it will be re-enabled as soon as possible.
* New imported features from astroid into pyreverse: pyreverse.inspector.Project,
pyreverse.inspector.project_from_files and pyreverse.inspector.interfaces.
These were moved since they didn't belong in astroid.
* Enable misplaced-future for Python 3. Closes issue #580.
* Add a new error, 'nonlocal-and-global', which is emitted when a
name is found to be both nonlocal and global in the same scope.
Closes issue #581.
* ignored-classes option can work with qualified names (ignored-classes=optparse.Values)
Closes issue #297.
* ignored-modules can work with qualified names as well as with Unix pattern
matching for recursive ignoring. Closes issues #244.
* Improve detection of relative imports in non-packages, as well as importing
missing modules with a relative import from a package.
* Don't emit no-init if not all the bases from a class are known.
Closes issue #604.
* --no-space-check option accepts ``empty-line`` as a possible option.
Closes issue #541.
* --generate-rcfile generates by default human readable symbols
for the --disable option. Closes issue #608.
* Improved the not-in-loop checker to properly detect more cases.
* Add a new error, 'continue-in-finally', which is emitted when
the ``continue`` keyword is found inside a ``finally`` clause, which
is a SyntaxError.
* The --zope flag is deprecated and it is slated for removal
in Pylint 1.6.
The reason behind this removal is the fact that it's a specialized
flag and there are solutions for the original problem:
use --generated-members with the members that causes problems
when using Zope or add AST transforms tailored to the zope
project.
At the same time, --include-ids and --symbols will also be removed
in Pylint 1.6. Closes issue #570.
* missing-module-attribute was removed and the corresponding
CLI option, required-attributes, which is slated for removal
in Pylint 1.6.
* missing-reversed-argument was removed.
The reason behind this is that this kind of errors should be
detected by the type checker for *all* the builtins and not
as a special case for the reversed builtin. This will happen
shortly in the future.
* --comment flag is obsolete and it will be removed in Pylint 1.6.
* --profile flag is obsolete and it will be removed in Pylint 1.6.
* Add a new error, 'misplaced-bare-raise'.
The error is used when a bare raise is not used inside an except clause.
This can generate a RuntimeError in Python, if there are no active exceptions
to be reraised. While it works in Python 2 due to the fact that the exception
leaks outside of the except block, it's nevertheless a behaviour that
a user shouldn't depend upon, since it's not obvious to the reader of the code
what exception will be raised and it will not be compatible with Python 3 anyhow.
Closes issue #633.
* Bring logilab-common's ureports into pylint.reporters.
With this change, we moved away from depending on logilab-common,
having in Pylint all the components that were used from logilab-common.
The API should be considered an implementation detail and can change at
some point in the future.
Closes issue #621.
* ``reimported`` is emitted for reimported objects on the same line.
Closes issue #639.
* Abbreviations of command line options are not supported anymore.
Using abbreviations for CLI options was never considered to be
a feature of pylint, this fact being only a side effect of using optparse.
As this was the case, using --load-plugin or other abbreviation
for --load-plugins never actually worked, while it also didn't raise
an error. Closes issue #424.
* Add a new error, 'nonlocal-without-binding'
The error is emitted on Python 3 when a nonlocal name is not bound
to any variable in the parents scopes. Closes issue #582.
* 'deprecated-module' can be shown for modules which aren't
available. Closes issue #362.
* Don't consider a class abstract if its members can't
be properly inferred.
This fixes a false positive related to abstract-class-instantiated.
Closes issue #648.
* Add a new checker for the async features added by PEP 492.
* Add a new error, 'yield-inside-async-function', emitted on
Python 3.5 and upwards when the ``yield`` statement is found inside
a new coroutine function (PEP 492).
* Add a new error, 'not-async-context-manager', emitted when
an async context manager block is used with an object which doesn't
support this protocol (PEP 492).
* Add a new convention warning, 'singleton-comparison', emitted when
comparison to True, False or None is found.
* Don't emit 'assigning-non-slot' for descriptors. Closes issue #652.
* Add a new error, 'repeated-keyword', when a keyword argument is passed
multiple times into a function call.
This is similar with redundant-keyword-arg, but it's mildly different
that it needs to be a separate error.
* --enable=all can now be used. Closes issue #142.
* Add a new convention message, 'misplaced-comparison-constant',
emitted when a constant is placed in the left hand side of a comparison,
as in '5 == func()'. This is also called Yoda condition, since the
flow of code reminds of the Star Wars green character, conditions usually
encountered in languages with variabile assignments in conditional
statements.
* Add a new convention message, 'consider-using-enumerate', which is
emitted when code that uses ``range`` and ``len`` for iterating is encountered.
Closes issue #684.
* Added two new refactoring messages, 'no-classmethod-decorator' and
'no-staticmethod-decorator', which are emitted when a static method or a class
method is declared without using decorators syntax.
Closes issue #675.
What's New in Pylint 1.4.3?
===========================
Release date: 2015-03-14
* Remove three warnings: star-args, abstract-class-little-used,
abstract-class-not-used. These warnings don't add any real value
and they don't imply errors or problems in the code.
* Added a new option for controlling the peephole optimizer in astroid.
The option ``--optimize-ast`` will control the peephole optimizer,
which is used to optimize a couple of AST subtrees. The current problem
solved by the peephole optimizer is when multiple joined strings,
with the addition operator, are encountered. If the numbers of such
strings is high enough, Pylint will then fail with a maximum recursion
depth exceeded error, due to its visitor architecture. The peephole
just transforms such calls, if it can, into the final resulting string
and this exhibit a problem, because the visit_binop method stops being
called (in the optimized AST it will be a Const node).
What's New in Pylint 1.4.2?
===========================
Release date: 2015-03-11
* Don't require a docstring for empty modules. Closes issue #261.
* Fix a false positive with ``too-few-format-args`` string warning,
emitted when the string format contained a normal positional
argument ('{0}'), mixed with a positional argument which did
an attribute access ('{0.__class__}').
Closes issue #463.
* Take in account all the methods from the ancestors
when checking for too-few-public-methods. Closes issue #471.
* Catch enchant errors and emit 'invalid-characters-in-docstring'
when checking for spelling errors. Closes issue #469.
* Use all the inferred statements for the super-init-not-called
check. Closes issue #389.
* Add a new warning, 'unichr-builtin', emitted by the Python 3
porting checker, when the unichr builtin is found. Closes issue #472.
* Add a new warning, 'intern-builtin', emitted by the Python 3
porting checker, when the intern builtin is found. Closes issue #473.
* Add support for editable installations.
* The HTML output accepts the ``--msg-template`` option. Patch by
Dan Goldsmith.
* Add 'map-builtin-not-iterating' (replacing 'implicit-map-evaluation'),
'zip-builtin-not-iterating', 'range-builtin-not-iterating', and
'filter-builtin-not-iterating' which are emitted by ``--py3k`` when the
appropriate built-in is not used in an iterating context (semantics
taken from 2to3).
* Add a new warning, 'unidiomatic-typecheck', emitted when an explicit
typecheck uses type() instead of isinstance(). For example,
`type(x) == Y` instead of `isinstance(x, Y)`. Patch by Chris Rebert.
Closes issue #299.
* Add support for combining the Python 3 checker mode with the --jobs
flag (--py3k and --jobs). Closes issue #467.
* Add a new warning for the Python 3 porting checker, 'using-cmp-argument',
emitted when the ``cmp`` argument for the ``list.sort`` or ``sorted builtin``
is encountered.
* Make the --py3k flag commutative with the -E flag. Also, this patch
fixes the leaks of error messages from the Python 3 checker when
the errors mode was activated. Closes issue #437.
What's New in Pylint 1.4.1?
===========================
Release date: 2015-01-16
* Look only in the current function's scope for bad-super-call.
Closes issue #403.
* Check the return of properties when checking for not-callable.
Closes issue #406.
* Warn about using the input() or round() built-ins for Python 3.
Closes issue #411.
* Proper abstract method lookup while checking for
abstract-class-instantiated. Closes issue #401.
* Use a mro traversal for finding abstract methods. Closes issue #415.
* Fix a false positive with catching-non-exception and tuples of
exceptions.
* Fix a false negative with raising-non-exception, when the raise used
an uninferrable exception context.
* Fix a false positive on Python 2 for raising-bad-type, when
raising tuples in the form 'raise (ZeroDivisionError, None)'.
* Fix a false positive with invalid-slots-objects, where the slot entry
was a unicode string on Python 2. Closes issue #421.
* Add a new warning, 'redundant-unittest-assert', emitted when using
unittest's methods assertTrue and assertFalse with constant value
as argument. Patch by Vlad Temian.
* Add a new JSON reporter, usable through -f flag.
* Add the method names for the 'signature-differs' and 'argument-differs'
warnings. Closes issue #433.
* Don't compile test files when installing.
* Fix a crash which occurred when using multiple jobs and the files
given as argument didn't exist at all.
What's New in Pylint 1.4.0?
============================
Release date: 2014-11-23
* Added new options for controlling the loading of C extensions.
By default, only C extensions from the stdlib will be loaded
into the active Python interpreter for inspection, because they
can run arbitrary code on import. The option
``--extension-pkg-whitelist`` can be used to specify modules
or packages that are safe to load.
* Change default max-line-length to 100 rather than 80
* Drop BaseRawChecker class which were only there for backward
compat for a while now
* Don't try to analyze string formatting with objects coming from
function arguments. Closes issue #373.
* Port source code to be Python 2/3 compatible. This drops the
need for 2to3, but does drop support for Python 2.5.
* Each message now comes with a confidence level attached, and
can be filtered base on this level. This allows to filter out
all messages that were emitted even though an inference failure
happened during checking.
* Improved presenting unused-import message. Closes issue #293.
* Add new checker for finding spelling errors. New messages:
wrong-spelling-in-comment, wrong-spelling-in-docstring.
New options: spelling-dict, spelling-ignore-words.
* Add new '-j' option for running checks in sub-processes.
* Added new checks for line endings if they are mixed (LF vs CRLF)
or if they are not as expected. New messages: mixed-line-endings,
unexpected-line-ending-format. New option: expected-line-ending-format.
* 'dangerous-default-value' no longer evaluates the value of the arguments,
which could result in long error messages or sensitive data being leaked.
Closes issue #282
* Fix a false positive with string formatting checker, when
encountering a string which uses only position-based arguments.
Closes issue #285.
* Fix a false positive with string formatting checker, when using
keyword argument packing. Closes issue #288.
* Proper handle class level scope for lambdas.
* Handle 'too-few-format-args' or 'too-many-format-args' for format
strings with both named and positional fields. Closes issue #286.
* Analyze only strings by the string format checker. Closes issue #287.
* Properly handle nested format string fields. Closes issue #294.
* Don't emit 'attribute-defined-outside-init' if the attribute
was set by a function call in a defining method. Closes issue #192.
* Properly handle unicode format strings for Python 2.
Closes issue #296.
* Don't emit 'import-error' if an import was protected by a try-except,
which excepted ImportError.
* Fix an 'unused-import' false positive, when the error was emitted
for all the members imported with 'from import' form.
Closes issue #304.
* Don't emit 'invalid-name' when assigning a name in an
ImportError handler. Closes issue #302.
* Don't count branches from nested functions.
* Fix a false positive with 'too-few-format-args', when the format
strings contains duplicate manual position arguments.
Closes issue #310.
* fixme regex handles comments without spaces after the hash.
Closes issue #311.
* Don't emit 'unused-import' when a special object is imported
(__all__, __doc__ etc.). Closes issue #309.
* Look in the metaclass, if defined, for members not found in the current
class. Closes issue #306.
* Don't emit 'protected-access' if the attribute is accessed using
a property defined at the class level.
* Detect calls of the parent's __init__, through a binded super() call.
* Check that a class has an explicitly defined metaclass before
emitting 'old-style-class' for Python 2.
* Emit 'catching-non-exception' for non-class nodes. Closes issue #303.
* Order of reporting is consistent.
* Add a new warning, 'boolean-datetime', emitted when an instance
of 'datetime.time' is used in a boolean context. Closes issue #239.
* Fix a crash which occurred while checking for 'method-hidden',
when the parent frame was something different than a function.
* Generate html output for missing files. Closes issue #320.
* Fix a false positive with 'too-many-format-args', when the format
string contains mixed attribute access arguments and manual
fields. Closes issue #322.
* Extend the cases where 'undefined-variable' and 'used-before-assignment'
can be detected. Closes issue #291.
* Add support for customising callback identifiers, by adding a new
'--callbacks' command line option. Closes issue #326.
* Add a new warning, 'logging-format-interpolation', emitted when .format()
string interpolation is used within logging function calls.
* Don't emit 'unbalanced-tuple-unpacking' when the rhs of the assignment
is a variable length argument. Closes issue #329.
* Add a new warning, 'inherit-non-class', emitted when a class inherits
from something which is not a class. Closes issue #331.
* Fix another false positives with 'undefined-variable', where the variable
can be found as a class assignment and used in a function annotation.
Closes issue #342.
* Handle assignment of the string format method to a variable.
Closes issue #351.
* Support wheel packaging format for PyPi. Closes issue #334.
* Check that various built-ins that do not exist in Python 3 are not
used: apply, basestring, buffer, cmp, coerce, execfile, file, long
raw_input, reduce, StandardError, unicode, reload and xrange.
* Warn for magic methods which are not used in any way in Python 3:
__coerce__, __delslice__, __getslice__, __setslice__, __cmp__,
__oct__, __nonzero__ and __hex__.
* Don't emit 'assigning-non-slot' when the assignment is for a property.
Closes issue #359.
* Fix for regression: '{path}' was no longer accepted in '--msg-template'.
* Report the percentage of all messages, not just for errors and warnings.
Closes issue #319.
* 'too-many-public-methods' is reported only for methods defined in a class,
not in its ancestors. Closes issue #248.
* 'too-many-lines' disable pragma can be located on any line, not only the
first. Closes issue #321.
* Warn in Python 2 when an import statement is found without a
corresponding ``from __future__ import absolute_import``.
* Warn in Python 2 when a non-floor division operation is found without
a corresponding ``from __future__ import division``.
* Add a new option, 'exclude-protected', for excluding members
from the protected-access warning. Closes issue #48.
* Warn in Python 2 when using dict.iter*(), dict.view*(); none of these
methods are available in Python 3.
* Warn in Python 2 when calling an object's next() method; Python 3 uses
__next__() instead.
* Warn when assigning to __metaclass__ at a class scope; in Python 3 a
metaclass is specified as an argument to the 'class' statement.
* Warn when performing parameter tuple unpacking; it is not supported in
Python 3.
* 'abstract-class-instantiated' is also emitted for Python 2.
It was previously disabled.
* Add 'long-suffix' error, emitted when encountering the long suffix
on numbers.
* Add support for disabling a checker, by specifying an 'enabled'
attribute on the checker class.
* Add a new CLI option, --py3k, for enabling Python 3 porting mode. This
mode will disable all other checkers and will emit warnings and
errors for constructs which are invalid or removed in Python 3.
* Add 'old-octal-literal' to Python 3 porting checker, emitted when
encountering octals with the old syntax.
* Add 'implicit-map-evaluation' to Python 3 porting checker, emitted
when encountering the use of map builtin, without explicit evaluation.
What's New in Pylint 1.3.0?
===========================
Release date: 2014-07-26
* Allow hanging continued indentation for implicitly concatenated
strings. Closes issue #232.
* Pylint works under Python 2.5 again, and its test suite passes.
* Fix some false positives for the cellvar-from-loop warnings.
Closes issue #233.
* Return new astroid class nodes when the inferencer can detect that
that result of a function invocation on a type (like ``type`` or
`abc.ABCMeta`) is requested. Closes #205.
* Emit 'undefined-variable' for undefined names when using the
Python 3 ``metaclass=`` argument.
* Checkers respect priority now. Close issue #229.
* Fix a false positive regarding W0511. Closes issue #149.
* Fix unused-import false positive with Python 3 metaclasses (#143).
* Don't warn with 'bad-format-character' when encountering
the 'a' format on Python 3.
* Add multiple checks for PEP 3101 advanced string formatting:
'bad-format-string', 'missing-format-argument-key',
'unused-format-string-argument', 'format-combined-specification',
'missing-format-attribute' and 'invalid-format-index'.
* Issue broad-except and bare-except even if the number
of except handlers is different than 1. Fixes issue #113.
* Issue attribute-defined-outside-init for all cases, not just
for the last assignment. Closes issue #262.
* Emit 'not-callable' when calling properties. Closes issue #268.
* Fix a false positive with unbalanced iterable unpacking,
when encountering starred nodes. Closes issue #273.
* Add new checks, 'invalid-slice-index' and 'invalid-sequence-index'
for invalid sequence and slice indices.
* Add 'assigning-non-slot' warning, which detects assignments to
attributes not defined in slots.
* Don't emit 'no-name-in-module' for ignored modules.
Closes issue #223.
* Fix an 'unused-variable' false positive, where the variable is
assigned through an import. Closes issue #196.
* Definition order is considered for classes, function arguments
and annotations. Closes issue #257.
* Don't emit 'unused-variable' when assigning to a nonlocal.
Closes issue #275.
* Do not let ImportError propagate from the import checker, leading to crash
in some namespace package related cases. Closes issue #203.
* Don't emit 'pointless-string-statement' for attribute docstrings.
Closes issue #193.
* Use the proper mode for pickle when opening and writing the stats file.
Closes issue #148.
* Don't emit hidden-method message when the attribute has been
monkey-patched, you're on your own when you do that.
* Only emit attribute-defined-outside-init for definition within the same
module as the offended class, avoiding to mangle the output in some cases.
* Don't emit 'unnecessary-lambda' if the body of the lambda call contains
call chaining. Closes issue #243.
* Don't emit 'missing-docstring' when the actual docstring uses ``.format``.
Closes issue #281.
What's New in Pylint 1.2.1?
===========================
Release date: 2014-04-30
* Restore the ability to specify the init-hook option via the
configuration file, which was accidentally broken in 1.2.0.
* Add a new warning [bad-continuation] for badly indentend continued
lines.
* Emit [assignment-from-none] when the function contains bare returns.
Fixes BitBucket issue #191.
* Added a new warning for closing over variables that are
defined in loops. Fixes Bitbucket issue #176.
* Do not warn about \u escapes in string literals when Unicode literals
are used for Python 2.*. Fixes BitBucket issue #151.
* Extend the checking for unbalanced-tuple-unpacking and
unpacking-non-sequence to instance attribute unpacking as well.
* Fix explicit checking of python script (1.2 regression, #219)
* Restore --init-hook, renamed accidentally into --init-hooks in 1.2.0
(#211)
* Add 'indexing-exception' warning, which detects that indexing
an exception occurs in Python 2 (behaviour removed in Python 3).
What's New in Pylint 1.2.0?
===========================
Release date: 2014-04-18
* Pass the current python paths to pylint process when invoked via
epylint. Fixes BitBucket issue #133.
* Add -i / --include-ids and -s / --symbols back as completely ignored
options. Fixes BitBucket issue #180.
* Extend the number of cases in which logging calls are detected. Fixes
bitbucket issue #182.
* Improve pragma handling to not detect pylint:* strings in non-comments.
Fixes BitBucket issue #79.
* Do not crash with UnknownMessage if an unknown message ID/name appears
in disable or enable in the configuration. Patch by Cole Robinson.
Fixes bitbucket issue #170.
* Add new warning 'eval-used', checking that the builtin function ``eval``
was used.
* Make it possible to show a naming hint for invalid name by setting
include-naming-hint. Also make the naming hints configurable. Fixes
BitBucket issue #138.
* Added support for enforcing multiple, but consistent name styles for
different name types inside a single module; based on a patch written
by morbo@google.com.
* Also warn about empty docstrings on overridden methods; contributed
by sebastianu@google.com.
* Also inspect arguments to constructor calls, and emit relevant
warnings; contributed by sebastianu@google.com.
* Added a new configuration option logging-modules to make the list
of module names that can be checked for 'logging-not-lazy' et. al.
configurable; contributed by morbo@google.com.
* ensure init-hooks is evaluated before other options, notably load-plugins
(#166)
* Python 2.5 support restored: fixed small issues preventing pylint to run
on python 2.5. Bitbucket issues #50 and #62.
* bitbucket #128: pylint doesn't crash when looking
for used-before-assignment in context manager
assignments.
* Add new warning, 'bad-reversed-sequence', for checking that the
reversed() builtin receive a sequence (implements __getitem__ and __len__,
without being a dict or a dict subclass) or an instance which implements
__reversed__.
* Mark ``file`` as a bad function when using python2 (closes #8).
* Add new warning 'bad-exception-context', checking
that ``raise ... from ...`` uses a proper exception context
(None or an exception).
* Enhance the check for 'used-before-assignment' to look
for 'nonlocal' uses.
* Emit 'undefined-all-variable' if a package's __all__
variable contains a missing submodule (closes #126).
* Add a new warning 'abstract-class-instantiated' for checking
that abstract classes created with ``abc`` module and
with abstract methods are instantied.
* Do not warn about 'return-arg-in-generator' in Python 3.3+.
* Do not warn about 'abstract-method' when the abstract method
is implemented through assignment (#155).
* Improve cyclic import detection in the case of packages, patch by Buck
Golemon
* Add new warnings for checking proper class __slots__:
``invalid-slots-object`` and ``invalid-slots``.
* Search for rc file in `~/.config/pylintrc` if `~/.pylintrc`
doesn't exists (#121)
* Don't register the newstyle checker w/ python >= 3
* Fix unused-import false positive w/ augment assignment (#78)
* Fix access-member-before-definition false negative wrt aug assign (#164)
* Do not attempt to analyze non python file, eg .so file (#122)
What's New in Pylint 1.1.0?
===========================
Release date: 2013-12-22
* Add new check for use of deprecated pragma directives "pylint:disable-msg"
or "pylint:enable-msg" (I0022, deprecated-pragma) which was previously
emitted as a regular warn().
* Avoid false used-before-assignment for except handler defined
identifier used on the same line (#111).
* Combine 'no-space-after-operator', 'no-space-after-comma' and
'no-space-before-operator' into a new warning 'bad-whitespace'.
* Add a new warning 'superfluous-parens' for unnecessary
parentheses after certain keywords.
* Fix a potential crash in the redefine-in-handler warning
if the redefined name is a nested getattr node.
* Add a new option for the multi-statement warning to
allow single-line if statements.
* Add 'bad-context-manager' error, checking that '__exit__'
special method accepts the right number of arguments.
* Run pylint as a python module 'python -m pylint' (anatoly techtonik).
* Check for non-exception classes inside an except clause.
* epylint support options to give to pylint after the file to analyze and
have basic input validation (bitbucket #53 and #54), patches provided by
felipeochoa and Brian Lane.
* Added a new warning, 'non-iterator-returned', for non-iterators
returned by '__iter__'.
* Add new checks for unpacking non-sequences in assignments
(unpacking-non-sequence) as well as unbalanced tuple unpacking
(unbalanced-tuple-unpacking).
* useless-else-on-loop not emitted if there is a break in the
else clause of inner loop (#117).
* don't mark ``input`` as a bad function when using python3 (#110).
* badly-implemented-container caused several problems in its
current implementation. Deactivate it until we have something
better. See #112 for instance.
* Use attribute regexp for properties in python3, as in python2
* Create the PYLINTHOME directory when needed, it might fail and lead to
spurious warnings on import of pylint.config.
* Fix setup.py so that pylint properly install on Windows when using python3
* Various documentation fixes and enhancements
* Fix issue #55 (false-positive trailing-whitespace on Windows)
What's New in Pylint 1.0.0?
===========================
Release date: 2013-08-06
* Add check for the use of 'exec' function
* New --msg-template option to control output, deprecating "msvc" and
"parseable" output formats as well as killing ``--include-ids`` and ``--symbols``
options
* Do not emit [fixme] for every line if the config value 'notes'
is empty, but [fixme] is enabled.
* Emit warnings about lines exceeding the column limit when
those lines are inside multiline docstrings.
* Do not double-check parameter names with the regex for parameters and
inline variables.
* Added a new warning missing-final-newline (C0304) for files missing
the final newline.
* Methods that are decorated as properties are now treated as attributes
for the purposes of name checking.
* Names of derived instance class member are not checked any more.
* Names in global statements are now checked against the regular
expression for constants.
* For toplevel name assignment, the class name regex will be used if
pylint can detect that value on the right-hand side is a class
(like collections.namedtuple()).
* Simplified invalid-name message
* Added a new warning invalid-encoded-data (W0512) for files that
contain data that cannot be decoded with the specified or
default encoding.
* New warning bad-open-mode (W1501) for calls to open (or file) that
specify invalid open modes (Original implementation by Sasha Issayev).
* New warning old-style-class (C1001) for classes that do not have any
base class.
* Add new name type 'class_attribute' for attributes defined
in class scope. By default, allow both const and variable names.
* New warning trailing-whitespace (C0303) that warns about
trailing whitespace.
* Added a new warning unpacking-in-except (W0712) about unpacking
exceptions in handlers, which is unsupported in Python 3.
* Add a configuration option for missing-docstring to
optionally exempt short functions/methods/classes from
the check.
* Add the type of the offending node to missing-docstring
and empty-docstring.
* New utility classes for per-checker unittests in testutils.py
* Do not warn about redefinitions of variables that match the
dummy regex.
* Do not treat all variables starting with _ as dummy variables,
only _ itself.
* Make the line-too-long warning configurable by adding a regex for lines
for with the length limit should not be enforced
* Do not warn about a long line if a pylint disable
option brings it above the length limit
* Do not flag names in nested with statements as undefined.
* Added a new warning 'old-raise-syntax' for the deprecated syntax
raise Exception, args
* Support for PEP 3102 and new missing-kwoa (E1125) message for missing
mandatory keyword argument (logilab.org's #107788)
* Fix spelling of max-branchs option, now max-branches
* Added a new base class and interface for checkers that work on the
tokens rather than the syntax, and only tokenize the input file
once.
* Follow astng renaming to astroid
* bitbucket #37: check for unbalanced unpacking in assignments
* bitbucket #25: fix incomplete-protocol false positive for read-only
containers like tuple
* bitbucket #16: fix False positive E1003 on Python 3 for argument-less super()
* bitbucket #6: put back documentation in source distribution
* bitbucket #15: epylint shouldn't hang anymore when there is a large
output on pylint'stderr
* bitbucket #7: fix epylint w/ python3
* bitbucket #3: remove string module from the default list of deprecated
modules
What's New in Pylint 0.28.0?
============================
Release date: 2013-04-25
* bitbucket #1: fix "dictionary changed size during iteration" crash
* #74013: new E1310[bad-str-strip-call] message warning when a call to a
{l,r,}strip method contains duplicate characters (patch by Torsten Marek)
* #123233: new E0108[duplicate-argument-name] message reporting duplicate
argument names
* #81378: emit W0120[useless-else-on-loop] for loops without break
* #124660: internal dependencies should not appear in external dependencies
report
* #124662: fix name error causing crash when symbols are included in output
messages
* #123285: apply pragmas for warnings attached to lines to physical source
code lines
* #123259: do not emit E0105 for yield expressions inside lambdas
* #123892: don't crash when attempting to show source code line that can't
be encoded with the current locale settings
* Simplify checks for dangerous default values by unifying tests for all
different mutable compound literals.
* Improve the description for E1124[redundant-keyword-arg]
What's New in Pylint 0.27.0?
============================
Release date: 2013-02-26
* #20693: replace pylint.el by Ian Eure version (patch by J.Kotta)
* #105327: add support for --disable=all option and deprecate the
'disable-all' inline directive in favour of 'skip-file' (patch by
A.Fayolle)
* #110840: add messages I0020 and I0021 for reporting of suppressed
messages and useless suppression pragmas. (patch by Torsten Marek)
* #112728: add warning E0604 for non-string objects in __all__
(patch by Torsten Marek)
* #120657: add warning W0110/deprecated-lambda when a map/filter
of a lambda could be a comprehension (patch by Martin Pool)
* #113231: logging checker now looks at instances of Logger classes
in addition to the base logging module. (patch by Mike Bryant)
* #111799: don't warn about octal escape sequence, but warn about \o
which is not octal in Python (patch by Martin Pool)
* #110839: bind <F5> to Run button in pylint-gui
* #115580: fix erroneous W0212 (access to protected member) on super call
(patch by Martin Pool)
* #110853: fix a crash when an __init__ method in a base class has been
created by assignment rather than direct function definition (patch by
Torsten Marek)
* #110838: fix pylint-gui crash when include-ids is activated (patch by
Omega Weapon)
* #112667: fix emission of reimport warnings for mixed imports and extend
the testcase (patch by Torsten Marek)
* #112698: fix crash related to non-inferable __all__ attributes and
invalid __all__ contents (patch by Torsten Marek)
* Python 3 related fixes:
* #110213: fix import of checkers broken with python 3.3, causing
"No such message id W0704" breakage
* #120635: redefine cmp function used in pylint.reporters
* Include full warning id for I0020 and I0021 and make sure to flush
warnings after each module, not at the end of the pylint run.
(patch by Torsten Marek)
* Changed the regular expression for inline options so that it must be
preceded by a # (patch by Torsten Marek)
* Make dot output for import graph predictable and not depend
on ordering of strings in hashes. (patch by Torsten Marek)
* Add hooks for import path setup and move pylint's sys.path
modifications into them. (patch by Torsten Marek)
What's New in Pylint 0.26.0?
============================
Release date: 2012-10-05
* #106534: add --ignore-imports option to code similarity checking
and 'symilar' command line tool (patch by Ry4an Brase)
* #104571: check for anomalous backslash escape, introducing new
W1401 and W1402 messages (patch by Martin Pool)
* #100707: check for boolop being used as exception class, introducing
new W0711 message (patch by Tim Hatch)
* #4014: improve checking of metaclass methods first args, introducing
new C0204 message (patch by lothiraldan@gmail.com finalized by sthenault)
* #4685: check for consistency of a module's __all__ variable,
introducing new E0603 message
* #105337: allow custom reporter in output-format (patch by Kevin Jing Qiu)
* #104420: check for protocol completeness and avoid false R0903
(patch by Peter Hammond)
* #100654: fix grammatical error for W0332 message (using 'l' as
long int identifier)
* #103656: fix W0231 false positive for missing call to object.__init__
(patch by lothiraldan@gmail.com)
* #63424: fix similarity report disabling by properly renaming it to RP0801
* #103949: create a console_scripts entry point to be used by
easy_install, buildout and pip
* fix cross-interpreter issue (non compatible access to __builtins__)
* stop including tests files in distribution, they causes crash when
installed with python3 (#72022, #82417, #76910)
What's New in Pylint 0.25.2?
============================
Release date: 2012-07-17
* #93591: Correctly emit warnings about clobbered variable names when an
except handler contains a tuple of names instead of a single name.
(patch by tmarek@google.com)
* #7394: W0212 (access to protected member) not emitted on assignments
(patch by lothiraldan@gmail.com)
* #18772; no prototype consistency check for mangled methods (patch by
lothiraldan@gmail.com)
* #92911: emit W0102 when sets are used as default arguments in functions
(patch by tmarek@google.com)
* #77982: do not emit E0602 for loop variables of comprehensions
used as argument values inside a decorator (patch by tmarek@google.com)
* #89092: don't emit E0202 (attribute hiding a method) on @property methods
* #92584: fix pylint-gui crash due to internal API change
* #87192: fix crash when decorators are accessed through more than one dot
(for instance @a.b is fine, @a.b.c crash)
* #88914: fix parsing of --generated-members options, leading to crash
when using a regexp value set
* fix potential crashes with utils.safe_infer raising InferenceError
What's New in Pylint 0.25.1?
============================
Release date: 2011-12-08
* #81078: Warn if names in exception handlers clobber overwrite
existing names (patch by tmarek@google.com)
* #81113: Fix W0702 messages appearing with the wrong line number.
(patch by tmarek@google.com)
* #50461, #52020, #51222: Do not issue warnings when using 2.6's
property.setter/deleter functionality (patch by dneil@google.com)
* #9188, #4024: Do not trigger W0631 if a loop variable is assigned
in the else branch of a for loop.
What's New in Pylint 0.25.0?
============================
Release date: 2011-10-7
* #74742: make allowed name for first argument of class method configurable
(patch by Google)
* #74087: handle case where inference of a module return YES; this avoid
some cases of "TypeError: '_Yes' object does not support indexing" (patch
by Google)
* #74745: make "too general" exception names configurable (patch by Google)
* #74747: crash occurs when lookup up a special attribute in class scope
(patch by google)
* #76920: crash if on eg "pylint --rcfile" (patch by Torsten Marek)
* #77237: warning for E0202 may be very misleading
* #73941: HTML report messages table is badly rendered
What's New in Pylint 0.24.0?
============================
Release date: 2011-07-18
* #69738: add regular expressions support for "generated-members"
* ids of logging and string_format checkers have been changed:
logging: 65 -> 12, string_format: 99 -> 13
Also add documentation to say that ids of range 1-50 shall be reserved
to pylint internal checkers
* #69993: Additional string format checks for logging module:
check for missing arguments, too many arguments, or invalid string
formats in the logging checker module. Contributed by Daniel Arena
* #69220: add column offset to the reports. If you've a custom reporter,
this change may break it has now location gain a new item giving the
column offset.
* #60828: Fix false positive in reimport check
* #70495: absolute imports fail depending on module path (patch by Jacek Konieczny)
* #22273: Fix --ignore option documentation to match reality
What's New in Pylint 0.23.0?
============================
Release date: 2011-01-11
* documentation update, add manpages
* several performance improvements
* finalize python3 support
* new W0106 warning 'Expression "%s" is assigned to nothing'
* drop E0501 and E0502 messages about wrong source encoding: not anymore
interesting since it's a syntax error for python >= 2.5 and we now only
support this python version and above.
* don't emit W0221 or W0222 when methods as variable arguments (eg \*arg
and/or \*\*args). Patch submitted by Charles Duffy.
What's New in Pylint 0.22.0?
============================
Release date: 2010-11-15
* python versions: minimal python3.x support; drop python < 2.5 support
What's New in Pylint 0.21.4?
============================
Release date: 2010-10-27
* fix #48066: pylint crashes when redirecting output containing non-ascii characters
* fix #19799: "pylint -blah" exit with status 2
* update documentation
What's New in Pylint 0.21.3?
============================
Release date: 2010-09-28
* restored python 2.3 compatibility. Along with logilab-astng
0.21.3 and logilab-common 0.52, this will much probably be the
latest release supporting python < 2.5.
What's New in Pylint 0.21.2?
============================
Release date: 2010-08-26
* fix #36193: import checker raise exception on cyclic import
* fix #28796: regression in --generated-members introduced pylint 0.20
* some documentation cleanups
What's New in Pylint 0.21.1?
============================
Release date: 2010-06-04
* fix #28962: pylint crash with new options, due to missing stats data while
writing the Statistics by types report
* updated man page to 0.21 or greater command line usage (fix debian #582494)
What's New in Pylint 0.21.0?
============================
Release date: 2010-05-11
* command line updated (closes #9774, #9787, #9992, #22962):
* all enable-* / disable-* options have been merged into --enable / --disable
* BACKWARD INCOMPATIBLE CHANGE: short name of --errors-only becomes -E, -e being
affected to --enable
* pylint --help output much simplified, with --long-help available to get the
complete one
* revisited gui, thanks to students from Toronto university (they are great
contributors to this release!)
* fix #21591: html reporter produces no output if reports is set to 'no'
* fix #4581: not Missing docstring (C0111) warning if a method is overridden
* fix #4683: Non-ASCII characters count double if utf8 encode
* fix #9018: when using defining-attr-method, method order matters
* fix #4595: Comma not followed by a space should not occurs on trailing comma
in list/tuple/dict definition
* fix #22585: [Patch] fix man warnings for pyreverse.1 manpage
* fix #20067: AttributeError: 'NoneType' object has no attribute 'name' with with
What's New in Pylint 0.20.0?
============================
Release date: 2010-03-01
* fix #19498: fix windows batch file
* fix #19339: pylint.el : non existing py-mod-map
(closes Debian Bug report logs - #475939)
* implement #18860, new W0199 message on assert (a, b)
* implement #9776, 'W0150' break or return statement in finally block may
swallow exception.
* fix #9263, __init__ and __new__ are checked for unused arguments
* fix #20991, class scope definitions ignored in a genexpr
* fix #5975, Abstract intermediate class not recognized as such
* fix #5977, yield and return statement have their own counters, no more R0911
(Too many return statements) when a function have many yield stamtements
* implement #5564, function / method arguments with leading "_" are ignored in
arguments / local variables count.
* implement #9982, E0711 specific error message when raising NotImplemented
* remove --cache-size option
What's New in Pylint 0.19.0?
============================
Release date: 2009-12-18
* implement #18947, #5561: checker for function arguments
* include James Lingard string format checker
* include simple message (ids) listing by Vincent Ferotin (#9791)
* --errors-only does not hide fatal error anymore
* include james Lingard patches for ++/-- and duplicate key in dicts
* include James Lingard patches for function call arguments checker
* improved flymake code and doc provided by Derek Harland
* refactor and fix the imports checker
* fix #18862: E0601 false positive with lambda functions
* fix #8764: More than one statement on a single line false positive with
try/except/finally
* fix #9215: false undefined variable error in lambda function
* fix for w0108 false positive (Nathaniel)
* fix test/fulltest.sh
* #5821 added a utility function to run pylint in another process (patch provide by Vincent Ferotin)
What's New in Pylint 0.18.0?
============================
Release date: 2009-03-25
* tests ok with python 2.4, 2.5, 2.6. 2.3 not tested
* fix #8687, W0613 false positive on inner function
* fix #8350, C0322 false positive on multi-line string
* fix #8332: set E0501 line no to the first line where non ascii character
has been found
* avoid some E0203 / E0602 false negatives by detecting respectively
AttributeError / NameError
* implements #4037: don't issue W0142 (* or ** magic) when they are barely
passed from */** arguments
* complete #5573: more complete list of special methods, also skip W0613
for python internal method
* don't show information messages by default
* integration of Yuen Ho Wong's patches on emacs lisp files
What's New in Pylint 0.17.0?
============================
Release date: 2009-03-19
* semicolon check : move W0601 to W0301
* remove rpython : remove all rpython checker, modules and tests
* astng 0.18 compatibility: support for _ast module modifies interfaces
What's New in Pylint 0.16.0?
============================
Release date: 2009-01-28
* change [en|dis]able-msg-cat options: only accept message categories
identified by their first letter (eg IRCWEF) without the need for comma
as separator
* add epylint.bat script to fix Windows installation
* setuptools/easy_install support
* include a modified version of Maarten ter Huurne patch to avoid W0613
warning on arguments from overridden method
* implement #5575 drop dumb W0704 message) by adding W0704 to ignored
messages by default
* new W0108 message, checking for suspicious lambda (provided by Nathaniel
Manista)
* fix W0631, false positive reported by Paul Hachmann
* fix #6951: false positive with W0104
* fix #6949
* patches by Mads Kiilerich:
* implement #4691, make pylint exits with a non zero return
status if any messages other then Information are issued
* fix #3711, #5626 (name resolution bug w/ decorator and class members)
* fix #6954
What's New in Pylint 0.15.2?
============================
Release date: 2008-10-13
* fix #5672: W0706 weirdness ( W0706 removed )
* fix #5998: documentation points to wrong url for mailing list
* fix #6022: no error message on wrong module names
* fix #6040: pytest doesn't run test/func_test.py
What's New in Pylint 0.15.1?
============================
Release date: 2008-09-15
* fix #4910: default values are missing in manpage
* fix #5991: missing files in 0.15.0 tarball
* fix #5993: epylint should work with python 2.3
What's New in Pylint 0.15.0?
============================
Release date: 2008-09-10
* include pyreverse package and class diagram generation
* included Stefan Rank's patch to deal with 2.4 relative import
* included Robert Kirkpatrick's tutorial and typos fixes
* fix bug in reenabling message
* fix #2473: invoking pylint on __init__.py (hopefully)
* typecheck: acquired-members option has been dropped in favor of the more
generic generated-members option. If the zope option is set, the behaviour
is now to add some default values to generated-members.
* flymake integration: added bin/epylint and elisp/pylint-flymake.el
What's New in Pylint 0.14.0?
============================
Release date: 2008-01-14
* fix #3733: Messages (dis)appear depending on order of file names
* fix #4026: pylint.el should require compile
* fix a bug in colorized reporter, spotted by Dave Borowitz
* applied patch from Stefan Rank to avoid W0410 false positive when
multiple "from __future__" import statements
* implement #4012: flag back tick as deprecated (new W0333 message)
* new ignored-class option on typecheck checker allowing to skip members
checking based on class name (patch provided by Thomas W Barr)
What's New in Pylint 0.13.2?
============================
Release date: 2007-06-07
* fix disable-checker option so that it won't accidentally enable the
rpython checker which is disabled by default
* added note about the gedit plugin into documentation
What's New in Pylint 0.13.1?
============================
Release date: 2007-03-02
* fix some unexplained 0.13.0 packaging issue which led to a bunch of
files missing from the distribution
What's New in Pylint 0.13.0?
============================
Release date: 2007-02-28
* new RPython (Restricted Python) checker for PyPy fellow or people
wanting to get a compiled version of their python program using the
translator of the PyPy project. For more information about PyPy or
RPython, visit https://www.pypy.org, previously codespeak.net/pypy/
* new E0104 and E0105 messages introduced to respectively warn about
"return" and "yield" outside function or method
* new E0106 message when "yield" and "return something" are mixed in a
function or method
* new W0107 message for unnecessary pass statement
* new W0614 message to differentiate between unused ``import X`` and
unused `from X import *` (#3209, patch submitted by Daniel Drake)
* included Daniel Drake's patch to have a different message E1003 instead of
E1001 when a missing member is found but an inference failure has been
detected
* msvs reporter for Visual Studio line number reporting (#3285)
* allow disable-all option inline (#3218, patch submitted by Daniel Drake)
* --init-hook option to call arbitrary code necessary to set
environment (eg sys.path) (#3156)
* One more Daniel's patch fixing a command line option parsing
problem, this'll definitely be the DDrake release :)
* fix #3184: crashes on "return" outside function
* fix #3205: W0704 false positive
* fix #3123: W0212 false positive on static method
* fix #2485: W0222 false positive
* fix #3259: when a message is explicitly enabled, check the checker
emitting it is enabled
What's New in Pylint 0.12.2?
============================
Release date: 2006-11-23
* fix #3143: W0233 bug w/ YES objects
* fix #3119: Off-by-one error counting lines in a file
* fix #3117: ease sys.stdout overriding for reporters
* fix #2508: E0601 false positive with lambda
* fix #3125: E1101 false positive and a message duplication. Only the last part
is actually fixed since the initial false positive is due to dynamic setting of
attributes on the decimal.Context class.
* fix #3149: E0101 false positives and introduced E0100 for generator __init__
methods
* fixed some format checker false positives
What's New in Pylint 0.12.1?
============================
Release date: 2006-09-25
* fixed python >= 2.4 format false positive with multiple lines statement
* fixed some 2.5 issues
* fixed generator expression scope bug (depends on astng 0.16.1)
* stop requiring __revision__
What's New in Pylint 0.12.0?
============================
Release date: 2006-08-10
* usability changes:
* parseable, html and color options are now handled by a single
output-format option
* enable-<checkerid> and disable-all options are now handled by
two (exclusive) enable-checker and disable-checker options
taking a comma separated list of checker names as value
* renamed debug-mode option to errors-only
* started a reference user manual
* new W0212 message for access to protected member from client code
(close #14081)
* new W0105 and W0106 messages extracted from W0104 (statement seems
to have no effect) respectively when the statement is actually string
(that's sometimes used instead of comments for documentation) or an
empty statement generated by a useless semicolon
* reclassified W0302 to C0302
* fix so that global messages are not anymore connected to the last
analyzed module (close #10106)
* fix some bugs related to local disabling of messages
* fix cr/lf pb when generating the rc file on windows platforms
What's New in Pylint 0.11.0?
============================
Release date: 2006-04-19
* fix crash caused by the exceptions checker in some case
* fix some E1101 false positive with abstract method or classes defining
__getattr__
* dirty fix to avoid "_socketobject" has not "connect" member. The actual
problem is that astng isn't able to understand the code used to create
socket.socket object with exec
* added an option in the similarity checker to ignore docstrings, enabled
by default
* included patch from Benjamin Niemann to allow block level
enabling/disabling of messages
What's New in Pylint 0.10.0?
============================
Release date: 2006-03-06
* WARNING, this release include some configuration changes (see below),
so you may have to check and update your own configuration file(s) if
you use one
* this release require the 0.15 version of astng or superior (it will save
you a lot of pylint crashes...)
* W0705 has been reclassified to E0701, and is now detecting more
inheriting problem, and a false positive when empty except clause is
following an Exception catch has been fixed (close #10422)
* E0212 and E0214 (metaclass/class method should have mcs/cls as first
argument have been reclassified to C0202 and C0203 since this not as
well established as "self" for instance method (E0213)
* W0224 has been reclassified into F0220 (failed to resolve interfaces
implemented by a class)
* a new typecheck checker, introducing the following checks:
- E1101, access to unexistent member (implements #10430), remove
the need of E0201 and so some options has been moved from the
classes checker to this one
- E1102, calling a non callable object
- E1111 and W1111 when an assignment is done on a function call but the
inferred function returns None (implements #10431)
* change in the base checker:
- checks module level and instance attribute names (new const-rgx
and attr-rgx configuration option) (implements #10209 and
#10440)
- list comprehension and generator expression variables have their
own regular expression (the inlinevar-rgx option) (implements
#9146)
- the C0101 check with its min-name-length option has
been removed (this can be specified in the regxp after all...)
- W0103 and W0121 are now handled by the variables checker
(W0103 is now W0603 and W0604 has been split into different messages)
- W0131 and W0132 messages have been reclassified to C0111 and
C0112 respectively
- new W0104 message on statement without effect
* regexp support for dummy-variables (dummy-variables-rgx option
replace dummy-variables) (implements #10027)
* better global statement handling, see W0602, W0603, W0604 messages
(implements #10344 and #10236)
* --debug-mode option, disabling all checkers without error message
and filtering others to only display error
* fixed some R0201 (method could be a function) false positive
What's New in Pylint 0.9.0?
============================
Release date: 2006-01-10
* a lot of updates to follow astng 0.14 API changes, so install
logilab-astng 0.14 or greater before using this version of pylint
* checker number 10 ! newstyle will search for problems regarding old
style / new style classes usage problems (rely on astng 0.14 new
style detection feature)
* new 'load-plugins' options to load additional pylint plugins (usable
from the command line or from a configuration file) (implements
#10031)
* check if a "pylintrc" file exists in the current working directory
before using the one specified in the PYLINTRC environment variable
or the default ~/.pylintrc or /etc/pylintrc
* fixed W0706 (Identifier used to raise an exception is assigned...)
false positive and reraising a caught exception instance
* fixed E0611 (No name get in module blabla) false positive when accessing
to a class'__dict__
* fixed some E0203 ("access to member before its definition") false
positive
* fixed E0214 ("metaclass method first argument should be mcs) false
positive with staticmethod used on a metaclass
* fixed packaging which was missing the test/regrtest_data directory
* W0212 (method could be a function) has been reclassified in the
REFACTOR category as R0201, and is no more considerer when a method
overrides an abstract method from an ancestor class
* include module name in W0401 (wildcard import), as suggested by
Amaury
* when using the '--parseable', path are written relative to the
current working directory if in a sub-directory of it (#9789)
* 'pylint --version' shows logilab-astng and logilab-common versions
* fixed pylint.el to handle space in file names
* misc lint style fixes
What's New in Pylint 0.8.1?
============================
Release date: 2005-11-07
* fix "deprecated module" false positive when the code imports a
module whose name starts with a deprecated module's name (close
#10061)
* fix "module has no name __dict__" false positive (close #10039)
* fix "access to undefined variable __path__" false positive (close
#10065)
* fix "explicit return in __init__" false positive when return is
actually in an inner function (close #10075)
What's New in Pylint 0.8.0?
============================
Release date: 2005-10-21
* check names imported from a module exists in the module (E0611),
patch contributed by Amaury Forgeot d'Arc
* print a warning (W0212) for methods that could be a function
(implements #9100)
* new --defining-attr-methods option on classes checker
* new --acquired-members option on the classes checker, used when
--zope=yes to avoid false positive on acquired attributes (listed
using this new option) (close #8616)
* generate one E0602 for each use of an undefined variable
(previously, only one for the first use but not for the following)
(implements #1000)
* make profile option saveable
* fix Windows .bat file, patch contributed by Amaury Forgeot d'Arc
* fix one more false positive for E0601 (access before definition)
with for loop such as "for i in range(10): print i" (test
func_noerror_defined_and_used_on_same_line)
* fix false positive for E0201 (undefined member) when accessing to
__name__ on a class object
* fix astng checkers traversal order
* fix bug in format checker when parsing a file from a platform
using different new line characters (close #9239)
* fix encoding detection regexp
* fix --rcfile handling (support for --rcfile=file, close #9590)
What's New in Pylint 0.7.0?
============================
Release date: 2005-05-27
* WARNING: pylint is no longer a logilab subpackage. Users may have to
manually remove the old logilab/pylint directory.
* introduce a new --additional-builtins option to handle user defined
builtins
* --reports option has now -r as short alias, and -i for --include-ids
* fix a bug in the variables checker which may causing some false
positives when variables are defined and used within the same
statement (test func_noerror_defined_and_used_on_same_line)
* this time, real fix of the "disable-msg in the config file" problem,
test added to unittest_lint
* fix bug with --list-messages and python -OO
* fix possible false positive for W0201
What's New in Pylint 0.6.4?
===========================
Release date: 2005-04-14
* allow to parse files without extension when a path is given on the
command line (test noext)
* don't fail if we are unable to read an inline option (e.g. inside a
module), just produce an information message (test func_i0010)
* new message E0103 for break or continue outside loop (close #8883,
test func_continue_not_in_loop)
* fix bug in the variables checker, causing non detection of some
actual name error (close #8884, test
func_nameerror_on_string_substitution)
* fix bug in the classes checker which was making pylint crash if
"object" is assigned in a class inheriting from it (test
func_noerror_object_as_class_attribute)
* fix problem with the similar checker when related options are
defined in a configuration file
* new --generate-man option to generate pylint's man page (require the
latest logilab.common (>= 0.9.3)
* packaged (generated...) man page
What's New in Pylint 0.6.3?
===========================
Release date: 2005-02-24
* fix scope problem which may cause false positive and true negative
on E0602
* fix problem with some options such as disable-msg causing error when
they are coming from the configuration file
What's New in Pylint 0.6.2?
============================
Release date: 2005-02-16
* fix false positive on E0201 ("access to undefined member") with
metaclasses
* fix false positive on E0203 ("access to member before its
definition") when attributes are defined in a parent class
* fix false positive on W0706 ("identifier used to raise an exception
assigned to...")
* fix interpretation of "\t" as value for the indent-string
configuration variable
* fix --rcfile so that --rcfile=pylintrc (only --rcfile pylintrc was
working in earlier release)
* new raw checker example in the examples/ directory
What's New in Pylint 0.6.1?
===========================
Release date: 2005-02-04
* new --rcfile option to specify the configuration file without the
PYLINTRC environment variable
* added an example module for a custom pylint checker (see the
example/ directory)
* some fixes to handle fixes in common 0.9.1 (should however still working
with common 0.9.0, even if upgrade is recommended)
What's New in Pylint 0.6.0?
===========================
Release date: 2005-01-20
* refix pylint emacs mode
* no more traceback when just typing "pylint"
* fix a bug which may cause crashes on resolving parent classes
* fix problems with the format checker: don't chock on files
containing multiple CR, avoid C0322, C0323, C0324 false positives
with triple quoted string with quote inside
* correctly detect access to member defined latter in __init__ method
* now depends on common 0.8.1 to fix problem with interface resolution
(close #8606)
* new --list-msgs option describing available checkers and their
messages
* added windows specific documentation to the README file, contributed
by Brian van den Broek
* updated doc/features.txt (actually this file is now generated using
the --list-msgs option), more entries into the FAQ
* improved tests coverage
What's New in Pylint 0.5.0?
===========================
Release date: 2004-10-19
* avoid importing analyzed modules !
* new Refactor and Convention message categories. Some Warnings have been
remaped into those new categories
* added "similar", a tool to find copied and pasted lines of code,
both using a specific command line tool and integrated as a
pylint's checker
* imports checker may report import dependencies as a dot graph
* new checker regrouping most Refactor detection (with some new metrics)
* more command line options storable in the configuration file
* fix bug with total / undocumented number of methods
What's New in Pylint 0.4.2?
===========================
Release date: 2004-07-08
* fix pylint emacs mode
* fix classes checkers to handler twisted interfaces
What's New in Pylint 0.4.1?
===========================
Release date: 2004-05-14
* fix the setup.py script to allow bdist_winst (well, the generated
installer has not been tested...) with the necessary
logilab/__init__.py file
* fix file naming convention as suggested by Andreas Amoroso
* fix stupid crash bug with bad method names
What's New in Pylint 0.4.0?
===========================
Release date: 2004-05-10
* fix file path with --parsable
* --parsable option has been renamed to --parseable
* added patch from Andreas Amoroso to output message to files instead
of standard output
* added Run to the list of correct variable names
* fix variable names regexp and checking of local classes names
* some basic handling of metaclasses
* no-docstring-rgx apply now on classes too
* new option to specify a different regexp for methods than for
functions
* do not display the evaluation report when no statements has been
analysed
* fixed crash with a class nested in a method
* fixed format checker to deals with triple quoted string and
lines with code and comment mixed
* use logilab.common.ureports to layout reports
What's New in Pylint 0.3.3?
===========================
Release date: 2004-02-17
* added a parsable text output, used when the --parsable option is
provided
* added an emacs mode using this output, available in the distrib's
elisp directory
* fixed some typos in messages
* change include-ids options to yn, and allow it to be in the
configuration file
* do not chock on corrupted stats files
* fixed bug in the format checker which may stop pylint execution
* provide scripts for unix and windows to wrap the minimal pylint tk
gui
What's New in Pylint 0.3.2?
===========================
Release date: 2003-12-23
* html-escape messages in the HTML reporter (bug reported by Juergen
Hermann)
* added "TODO" to the list of default note tags
* added "rexec" to the list of default deprecated modules
* fixed typos in some messages
What's New in Pylint 0.3.1?
===========================
Release date: 2003-12-05
* bug fix in format and classes checkers
* remove print statement from imports checkers
* provide a simple tk gui, essentially useful for windows users
What's New in Pylint 0.3.0?
===========================
Release date: 2003-11-20
* new exceptions checker, checking for string exception and empty
except clauses.
* imports checker checks for reimport of modules
* classes checker checks for calls to ancestor's __init__ and abstract
method not overridden. It doesn't complain anymore for unused import in
__init__ files, and provides a new option ignore-interface-methods,
useful when you're using zope Interface implementation in your project
* base checker checks for disallowed builtins call (controlled by the
bad-functions option) and for use of * and **
* format checker checks for use of <> and "l" as long int marker
* major internal API changes
* use the rewrite of astng, based on compiler.ast
* added unique id for messages, as suggested by Wolfgang Grafen
* added unique id for reports
* can take multiple modules or files as argument
* new options command line options : --disable-msg, --enable-msg,
--help-msg, --include-ids, --reports, --disable-report, --cache-size
* --version shows the version of the python interpreter
* removed some options which are now replaced by [en|dis]able-msg, or
disable-report
* read disable-msg and enable-msg options in source files (should be
in comments on the top of the file, in the form
"# pylint: disable-msg=W0402"
* new message for modules importing themselves instead of the "cyclic
import" message
* fix bug with relative and cyclic imports
* fix bug in imports checker (cycle was not always detected)
* still fixes in format checker : don't check comment and docstring,
check first line after an indent
* allowed/prohibited names now apply to all identifiers, not only
variables, so changed the configuration option from
(good|bad)-variable-names to (good|bad)-names
* added string, rexec and Bastion to the default list of deprecated
modules
* do not print redefinition warning for function/class/method defined
in mutually exclusive branches
What's New in Pylint 0.2.1?
===========================
Release date: 2003-10-10
* added some documentation, fixed some typos
* set environment variable PYLINT_IMPORT to 1 during pylint execution.
* check that variables "imported" using the global statement exist
* indentation problems are now warning instead of errors
* fix checkers.initialize to try to load all files with a known python
extension (patch from wrobell)
* fix a bunch of messages
* fix sample configuration file
* fix the bad-construction option
* fix encoding checker
* fix format checker
What's New in Pylint 0.2.0?
===========================
Release date: 2003-09-12
* new source encoding / FIXME checker (pep 263)
* new --zope option which trigger Zope import. Useful to check Zope
products code.
* new --comment option which enable the evaluation note comment
(disabled by default).
* a ton of bug fixes
* easy functional test infrastructure
What's New in Pylint 0.1.2?
===========================
Release date: 2003-06-18
* bug fix release
* remove dependency to pyreverse
What's New in Pylint 0.1.1?
===========================
Release date: 2003-06-01
* much more functionalities !
What's New in Pylint 0.1?
===========================
Release date: 2003-05-19
* initial release
|