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
|
------------------
Pylint's ChangeLog
------------------
* Fix minor documentation issue in contribute.rst
What's New in Pylint 2.6.1?
===========================
Release date: 2020-09-08
* Fix vulnerable regular expressions in ``pyreverse``
Close #3811
Release date: TBA
* ``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 dictionnary.
Close #3773
* Fix a crash when a specified config file does not exist
* Fix ``duplicate-code`` false positive when lines only contain whitespace and non-alphanumeric characters (e.g. parentheses, bracket, comman, 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
* Fix minor documentation issues
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
* 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
What's New in Pylint 2.5.4?
===========================
* 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 a ``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 parantheses 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: TBA
* 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
documention 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 reenabled 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 completness 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 assigments
(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 http://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 splitted 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 catched 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 black listed 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
* black and white list 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
|