Created
July 24, 2025 13:35
-
-
Save serjflint/d96a119ac16a6178dc651c102eb05d4d to your computer and use it in GitHub Desktop.
Pylint rules available in ruff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. anomalous-backslash-in-string (code: W605) | |
2. assert-on-string-literal (code: PLW0129) | |
3. assert-on-tuple (code: F631) | |
4. await-outside-async (code: PLE1142) | |
5. bad-classmethod-argument (code: N804) | |
6. bad-docstring-quotes (code: Q002) | |
7. bad-dunder-name (code: PLW3201) | |
8. bad-format-string (code: F521) | |
9. bad-indentation (code: E111) | |
10. bad-open-mode (code: PLW1501) | |
11. bad-staticmethod-argument (code: PLW0211) | |
12. bad-str-strip-call (code: PLE1310) | |
13. bad-string-format-type (code: PLE1307) | |
14. bare-except (code: E722) | |
15. bidirectional-unicode (code: PLE2502) | |
16. binary-op-exception (code: PLW0711) | |
17. broad-exception-caught (code: BLE001) | |
18. broad-exception-raised (code: TRY002) | |
19. cell-var-from-loop (code: B023) | |
20. compare-to-empty-string (code: PLC1901) | |
21. comparison-of-constants (code: PLR0133) | |
22. comparison-with-itself (code: PLR0124) | |
23. consider-alternative-union-syntax (code: UP007) | |
24. consider-iterating-dictionary (code: SIM118) | |
25. consider-merging-isinstance (code: SIM101) | |
26. consider-ternary-expression (code: SIM108) | |
27. consider-using-alias (code: UP006) | |
28. consider-using-any-or-all (code: SIM110`,`SIM111) | |
29. consider-using-augmented-assign (code: PLR6104) | |
30. consider-using-dict-comprehension (code: C402) | |
31. consider-using-dict-items (code: PLC0206) | |
32. consider-using-from-import (code: PLR0402) | |
33. consider-using-generator (code: C417) | |
34. consider-using-get (code: SIM401) | |
35. consider-using-in (code: PLR1714) | |
36. consider-using-max-builtin (code: PLR1730) | |
37. consider-using-min-builtin (code: PLR1730) | |
38. consider-using-set-comprehension (code: C401) | |
39. consider-using-sys-exit (code: PLR1722) | |
40. consider-using-with (code: SIM115) | |
41. continue-in-finally (code: PLE0116) | |
42. dangerous-default-value (code: B006) | |
43. docstring-first-line-empty (code: D210) | |
44. duplicate-bases (code: PLE0241) | |
45. duplicate-except (code: B014) | |
46. duplicate-key (code: F601) | |
47. duplicate-value (code: B033) | |
48. else-if-used (code: PLR5501) | |
49. empty-comment (code: PLR2044) | |
50. empty-docstring (code: D419) | |
51. eq-without-hash (code: PLW1641) | |
52. eval-used (code: S307) | |
53. exec-used (code: S102) | |
54. expression-not-assigned (code: B018) | |
55. f-string-without-interpolation (code: F541) | |
56. fixme (code: FIX001`,`FIX002`,`FIX003`,`FIX004) | |
57. forgotten-debug-statement (code: T100) | |
58. format-needs-mapping (code: F502) | |
59. format-string-without-interpolation (code: F541) | |
60. function-redefined (code: F811) | |
61. global-at-module-level (code: PLW0604) | |
62. global-statement (code: PLW0603) | |
63. global-variable-not-assigned (code: PLW0602) | |
64. implicit-str-concat (code: ISC001) | |
65. import-outside-toplevel (code: PLC0415) | |
66. import-private-name (code: PLC2701) | |
67. import-self (code: PLW0406) | |
68. inconsistent-quotes (code: Q000) | |
69. inconsistent-return-statements (code: RET501`,`RET502) | |
70. invalid-all-format (code: PLE0605) | |
71. invalid-all-object (code: PLE0604) | |
72. invalid-bool-returned (code: PLE0304) | |
73. invalid-bytes-returned (code: PLE0308) | |
74. invalid-character-backspace (code: PLE2510) | |
75. invalid-character-esc (code: PLE2513) | |
76. invalid-character-nul (code: PLE2514) | |
77. invalid-character-sub (code: PLE2512) | |
78. invalid-character-zero-width-space (code: PLE2515) | |
79. invalid-envvar-default (code: PLW1508) | |
80. invalid-index-returned (code: PLE0305) | |
81. invalid-length-returned (code: PLE0303) | |
82. invalid-name (code: N815) | |
83. keyword-arg-before-vararg (code: B026) | |
84. line-too-long (code: E501) | |
85. literal-comparison (code: F632) | |
86. logging-format-interpolation (code: G001) | |
87. logging-fstring-interpolation (code: G004) | |
88. logging-not-lazy (code: G002) | |
89. logging-too-few-args (code: PLE1206) | |
90. logging-too-many-args (code: PLE1205) | |
91. lost-exception (code: B012) | |
92. magic-value-comparison (code: PLR2004) | |
93. method-cache-max-size-none (code: B019) | |
94. misplaced-bare-raise (code: PLE0704) | |
95. misplaced-comparison-constant (code: SIM300) | |
96. misplaced-future (code: F404) | |
97. missing-class-docstring (code: D101) | |
98. missing-final-newline (code: W292) | |
99. missing-format-string-key (code: F524) | |
100. missing-function-docstring (code: D103) | |
101. missing-module-docstring (code: D100) | |
102. mixed-format-string (code: F506) | |
103. modified-iterating-set (code: PLE4703) | |
104. multiple-imports (code: E401) | |
105. multiple-statements (code: E701`,`E702) | |
106. named-expr-without-context (code: PLW0131) | |
107. nan-comparison (code: PLW0177) | |
108. nested-min-max (code: PLW3301) | |
109. no-classmethod-decorator (code: PLR0202) | |
110. no-else-break (code: RET508) | |
111. no-else-continue (code: RET507) | |
112. no-else-raise (code: RET506) | |
113. no-else-return (code: RET505) | |
114. no-self-argument (code: N805) | |
115. no-self-use (code: PLR6301) | |
116. no-staticmethod-decorator (code: PLR0203) | |
117. non-ascii-file-name (code: N999) | |
118. non-ascii-module-import (code: PLC2403) | |
119. non-ascii-name (code: PLC2401) | |
120. nonexistent-operator (code: B002) | |
121. nonlocal-without-binding (code: PLE0117) | |
122. not-in-loop (code: F701`,`F702) | |
123. notimplemented-raised (code: F901) | |
124. pointless-exception-statement (code: PLW0133) | |
125. pointless-statement (code: B018) | |
126. potential-index-error (code: PLE0643) | |
127. property-with-parameters (code: PLR0206) | |
128. protected-access (code: SLF001) | |
129. raise-missing-from (code: B904) | |
130. redefined-argument-from-local (code: PLR1704) | |
131. redefined-builtin (code: A001) | |
132. redefined-loop-name (code: PLW2901) | |
133. redundant-u-string-prefix (code: UP025) | |
134. reimported (code: F811) | |
135. repeated-keyword (code: PLE1132) | |
136. return-in-init (code: PLE0101) | |
137. return-outside-function (code: F706) | |
138. self-assigning-variable (code: PLW0127) | |
139. simplifiable-if-expression (code: SIM210`,`SIM211) | |
140. simplifiable-if-statement (code: SIM108) | |
141. single-string-used-for-slots (code: PLC0205) | |
142. singledispatch-method (code: PLE1519) | |
143. singledispatchmethod-function (code: PLE1520) | |
144. singleton-comparison (code: E711`,`E712) | |
145. subprocess-popen-preexec-fn (code: PLW1509) | |
146. subprocess-run-check (code: PLW1510) | |
147. super-with-arguments (code: UP008) | |
148. syntax-error (code: alwaysenabled) | |
149. too-complex (code: C901) | |
150. too-few-format-args (code: F524) | |
151. too-many-arguments (code: PLR0913) | |
152. too-many-boolean-expressions (code: PLR0916) | |
153. too-many-branches (code: PLR0912) | |
154. too-many-format-args (code: F522) | |
155. too-many-locals (code: PLR0914) | |
156. too-many-nested-blocks (code: PLR1702) | |
157. too-many-positional-arguments (code: PLR0917) | |
158. too-many-public-methods (code: PLR0904) | |
159. too-many-return-statements (code: PLR0911) | |
160. too-many-star-expressions (code: F622) | |
161. too-many-statements (code: PLR0915) | |
162. trailing-comma-tuple (code: COM818) | |
163. trailing-newlines (code: W391) | |
164. trailing-whitespace (code: W291) | |
165. truncated-format-string (code: F501) | |
166. try-except-raise (code: TRY302) | |
167. typevar-name-incorrect-variance (code: PLC0105) | |
168. undefined-all-variable (code: F822) | |
169. undefined-variable (code: F821) | |
170. unexpected-special-method-signature (code: PLE0302) | |
171. ungrouped-imports (code: I001) | |
172. unidiomatic-typecheck (code: E721) | |
173. unnecessary-comprehension (code: C416) | |
174. unnecessary-dict-index-lookup (code: PLR1733) | |
175. unnecessary-direct-lambda-call (code: PLC3002) | |
176. unnecessary-dunder-call (code: PLC2801) | |
177. unnecessary-ellipsis (code: PIE790) | |
178. unnecessary-lambda (code: PLW0108) | |
179. unnecessary-lambda-assignment (code: E731) | |
180. unnecessary-pass (code: PIE790) | |
181. unnecessary-semicolon (code: E703) | |
182. unneeded-not (code: SIM208) | |
183. unspecified-encoding (code: PLW1514) | |
184. unused-argument (code: ARG001) | |
185. unused-format-string-argument (code: F507) | |
186. unused-format-string-key (code: F504) | |
187. unused-import (code: F401) | |
188. unused-variable (code: F841) | |
189. use-a-generator (code: C419) | |
190. use-dict-literal (code: C406) | |
191. use-implicit-booleaness-not-len (code: PLC1802) | |
192. use-list-literal (code: C405) | |
193. use-maxsplit-arg (code: PLC0207) | |
194. use-sequence-for-iteration (code: PLC0208) | |
195. use-set-for-membership (code: PLR6201) | |
196. use-yield-from (code: UP028) | |
197. used-prior-global-declaration (code: PLE0118) | |
198. useless-else-on-loop (code: PLW0120) | |
199. useless-import-alias (code: PLC0414) | |
200. useless-object-inheritance (code: UP004) | |
201. useless-return (code: PLR1711) | |
202. useless-with-lock (code: PLW2101) | |
203. wildcard-import (code: F403) | |
204. wrong-import-order (code: I001) | |
205. wrong-import-position (code: E402) | |
206. yield-inside-async-function (code: PLE1700) | |
207. yield-outside-function (code: F704) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment