152 "SimplifyChecker", """Use keyword-argument instead of magic boolean""" |
152 "SimplifyChecker", """Use keyword-argument instead of magic boolean""" |
153 ), |
153 ), |
154 "Y402": QCoreApplication.translate( |
154 "Y402": QCoreApplication.translate( |
155 "SimplifyChecker", """Use keyword-argument instead of magic number""" |
155 "SimplifyChecker", """Use keyword-argument instead of magic number""" |
156 ), |
156 ), |
|
157 # f-Strings |
|
158 "Y411": QCoreApplication.translate( |
|
159 "SimplifyChecker", "Do not nest f-strings" |
|
160 ), |
|
161 # Additional Checks |
157 "Y901": QCoreApplication.translate( |
162 "Y901": QCoreApplication.translate( |
158 "SimplifyChecker", '''Use "{0}" instead of "{1}"''' |
163 "SimplifyChecker", '''Use "{0}" instead of "{1}"''' |
159 ), |
164 ), |
160 "Y904": QCoreApplication.translate( |
165 "Y904": QCoreApplication.translate( |
161 "SimplifyChecker", """Initialize dictionary "{0}" directly""" |
166 "SimplifyChecker", """Initialize dictionary "{0}" directly""" |