11146:59e04f7003e9 | 11147:dee6e106b4d3 |
---|---|
18 Class implementing a checker for to help simplifying Python code. | 18 Class implementing a checker for to help simplifying Python code. |
19 """ | 19 """ |
20 | 20 |
21 Codes = [ | 21 Codes = [ |
22 # Python-specifics | 22 # Python-specifics |
23 "Y101", | 23 "Y-101", |
24 "Y102", | 24 "Y-102", |
25 "Y103", | 25 "Y-103", |
26 "Y104", | 26 "Y-104", |
27 "Y105", | 27 "Y-105", |
28 "Y106", | 28 "Y-106", |
29 "Y107", | 29 "Y-107", |
30 "Y108", | 30 "Y-108", |
31 "Y109", | 31 "Y-109", |
32 "Y110", | 32 "Y-110", |
33 "Y111", | 33 "Y-111", |
34 "Y112", | 34 "Y-112", |
35 "Y113", | 35 "Y-113", |
36 "Y114", | 36 "Y-114", |
37 "Y115", | 37 "Y-115", |
38 "Y116", | 38 "Y-116", |
39 "Y117", | 39 "Y-117", |
40 "Y118", | 40 "Y-118", |
41 "Y119", | 41 "Y-119", |
42 "Y120", | 42 "Y-120", |
43 "Y121", | 43 "Y-121", |
44 "Y122", | 44 "Y-122", |
45 "Y123", | 45 "Y-123", |
46 # Python-specifics not part of flake8-simplify | 46 # Python-specifics not part of flake8-simplify |
47 "Y181", | 47 "Y-181", |
48 "Y182", | 48 "Y-182", |
49 # Comparations | 49 # Comparations |
50 "Y201", | 50 "Y-201", |
51 "Y202", | 51 "Y-202", |
52 "Y203", | 52 "Y-203", |
53 "Y204", | 53 "Y-204", |
54 "Y205", | 54 "Y-205", |
55 "Y206", | 55 "Y-206", |
56 "Y207", | 56 "Y-207", |
57 "Y208", | 57 "Y-208", |
58 "Y211", | 58 "Y-211", |
59 "Y212", | 59 "Y-212", |
60 "Y213", | 60 "Y-213", |
61 "Y221", | 61 "Y-221", |
62 "Y222", | 62 "Y-222", |
63 "Y223", | 63 "Y-223", |
64 "Y224", | 64 "Y-224", |
65 # Opinionated | 65 # Opinionated |
66 "Y301", | 66 "Y-301", |
67 # General Code Style | 67 # General Code Style |
68 "Y401", | 68 "Y-401", |
69 "Y402", | 69 "Y-402", |
70 # f-Strings | 70 # f-Strings |
71 "Y411", | 71 "Y-411", |
72 # Additional Checks | 72 # Additional Checks |
73 "Y901", | 73 "Y-901", |
74 "Y904", | 74 "Y-904", |
75 "Y905", | 75 "Y-905", |
76 "Y906", | 76 "Y-906", |
77 "Y907", | 77 "Y-907", |
78 "Y909", | 78 "Y-909", |
79 "Y910", | 79 "Y-910", |
80 "Y911", | 80 "Y-911", |
81 ] | 81 ] |
82 | 82 |
83 def __init__(self, source, filename, tree, selected, ignored, expected, repeat): | 83 def __init__(self, source, filename, tree, selected, ignored, expected, repeat): |
84 """ | 84 """ |
85 Constructor | 85 Constructor |