|
126 | 126 | "SIM113", # https://docs.astral.sh/ruff/rules/enumerate-for-loop |
127 | 127 | "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler |
128 | 128 | "UP010", # https://docs.astral.sh/ruff/rules/unnecessary-future-import |
| 129 | + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
129 | 130 | "UP032", # https://docs.astral.sh/ruff/rules/f-string |
130 | 131 | ] |
131 | 132 | "./samples/modules/tflite-micro/magic_wand/train/train_test.py" = [ |
|
199 | 200 | "F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders |
200 | 201 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
201 | 202 | "UP030", # https://docs.astral.sh/ruff/rules/format-literals |
| 203 | + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
202 | 204 | "UP032", # https://docs.astral.sh/ruff/rules/f-string |
203 | 205 | ] |
204 | 206 | "./scripts/build/gen_isr_tables_parser_local.py" = [ |
205 | 207 | "E501", # https://docs.astral.sh/ruff/rules/line-too-long |
206 | 208 | "F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders |
207 | 209 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
208 | 210 | "UP030", # https://docs.astral.sh/ruff/rules/format-literals |
| 211 | + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
209 | 212 | "UP032", # https://docs.astral.sh/ruff/rules/f-string |
210 | 213 | ] |
211 | 214 | "./scripts/build/gen_kobject_list.py" = [ |
|
254 | 257 | "E501", # https://docs.astral.sh/ruff/rules/line-too-long |
255 | 258 | "F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders |
256 | 259 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
| 260 | + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
257 | 261 | ] |
258 | 262 | "./scripts/build/gen_syscalls.py" = [ |
259 | 263 | "E501", # https://docs.astral.sh/ruff/rules/line-too-long |
|
365 | 369 | "E501", # https://docs.astral.sh/ruff/rules/line-too-long |
366 | 370 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
367 | 371 | "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler |
| 372 | + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
368 | 373 | "UP039", # https://docs.astral.sh/ruff/rules/unnecessary-class-parentheses |
369 | 374 | ] |
370 | 375 | "./scripts/coredump/coredump_parser/log_parser.py" = [ |
371 | 376 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
372 | 377 | "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler |
373 | 378 | "UP030", # https://docs.astral.sh/ruff/rules/format-literals |
| 379 | + "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
374 | 380 | "UP032", # https://docs.astral.sh/ruff/rules/f-string |
375 | 381 | ] |
376 | 382 | "./scripts/coredump/coredump_serial_log_parser.py" = [ |
|
748 | 754 | ] |
749 | 755 | "./scripts/pylib/twister/expr_parser.py" = [ |
750 | 756 | "SIM103", # https://docs.astral.sh/ruff/rules/needless-bool |
| 757 | + "SIM110", # https://docs.astral.sh/ruff/rules/reimplemented-builtin |
| 758 | + "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler |
751 | 759 | "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting |
752 | 760 | ] |
753 | 761 | "./scripts/pylib/twister/scl.py" = [ |
|
786 | 794 | "UP032", # https://docs.astral.sh/ruff/rules/f-string |
787 | 795 | ] |
788 | 796 | "./scripts/release/list_devicetree_bindings_changes.py" = [ |
| 797 | + "E402", # https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file |
789 | 798 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
790 | 799 | "SIM117", # https://docs.astral.sh/ruff/rules/multiple-with-statements |
791 | 800 | "UP006", # https://docs.astral.sh/ruff/rules/non-pep585-annotation |
|
833 | 842 | ] |
834 | 843 | "./scripts/tests/twister/test_data/mixins/test_to_ignore.py" = [ |
835 | 844 | "B011", # https://docs.astral.sh/ruff/rules/assert-false |
836 | | - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
837 | 845 | ] |
838 | 846 | "./scripts/tests/twister/test_environment.py" = [ |
839 | 847 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
|
1259 | 1267 | "UP032", # https://docs.astral.sh/ruff/rules/f-string |
1260 | 1268 | ] |
1261 | 1269 | "./scripts/west_commands/zspdx/cmakecache.py" = [ |
1262 | | - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
1263 | 1270 | "UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes |
1264 | 1271 | ] |
1265 | 1272 | "./scripts/west_commands/zspdx/cmakefileapi.py" = [ |
|
1275 | 1282 | "UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes |
1276 | 1283 | ] |
1277 | 1284 | "./scripts/west_commands/zspdx/datatypes.py" = [ |
1278 | | - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
1279 | 1285 | "UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters |
1280 | 1286 | ] |
1281 | 1287 | "./scripts/west_commands/zspdx/getincludes.py" = [ |
|
1290 | 1296 | "UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters |
1291 | 1297 | ] |
1292 | 1298 | "./scripts/west_commands/zspdx/scanner.py" = [ |
1293 | | - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
1294 | 1299 | "SIM113", # https://docs.astral.sh/ruff/rules/enumerate-for-loop |
1295 | 1300 | "UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters |
1296 | 1301 | "UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes |
|
1336 | 1341 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
1337 | 1342 | "UP009", # https://docs.astral.sh/ruff/rules/utf8-encoding-declaration |
1338 | 1343 | ] |
1339 | | -"./soc/mediatek/mtk_adsp/gen_img.py" = [ |
1340 | | - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
1341 | | - "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler |
1342 | | -] |
1343 | | -"./soc/mediatek/mtk_adsp/mtk_adsp_load.py" = [ |
1344 | | - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
1345 | | - "SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler |
1346 | | -] |
1347 | 1344 | "./soc/microchip/mec/common/spigen/mec_spi_gen.py" = [ |
1348 | 1345 | "E501", # https://docs.astral.sh/ruff/rules/line-too-long |
1349 | 1346 | "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports |
@@ -1465,11 +1462,11 @@ exclude = [ |
1465 | 1462 | "./doc/_extensions/zephyr/link-roles.py", |
1466 | 1463 | "./doc/_scripts/gen_boards_catalog.py", |
1467 | 1464 | "./doc/_scripts/gen_devicetree_rest.py", |
1468 | | - "./doc/_scripts/gen_helpers.py", |
1469 | 1465 | "./doc/_scripts/redirects.py", |
1470 | 1466 | "./doc/conf.py", |
1471 | 1467 | "./doc/develop/test/twister/sample_blackbox_test.py", |
1472 | 1468 | "./modules/mbedtls/create_psa_files.py", |
| 1469 | + "./samples/boards/nordic/coresight_stm/pytest/test_stm.py", |
1473 | 1470 | "./samples/modules/tflite-micro/magic_wand/train/data_augmentation.py", |
1474 | 1471 | "./samples/modules/tflite-micro/magic_wand/train/data_augmentation_test.py", |
1475 | 1472 | "./samples/modules/tflite-micro/magic_wand/train/data_load.py", |
@@ -1770,8 +1767,6 @@ exclude = [ |
1770 | 1767 | "./soc/intel/intel_adsp/tools/cavstool_client.py", |
1771 | 1768 | "./soc/intel/intel_adsp/tools/remote-fw-service.py", |
1772 | 1769 | "./soc/intel/intel_ish/utils/build_ish_firmware.py", |
1773 | | - "./soc/mediatek/mtk_adsp/gen_img.py", |
1774 | | - "./soc/mediatek/mtk_adsp/mtk_adsp_load.py", |
1775 | 1770 | "./soc/microchip/mec/common/spigen/mec_spi_gen.py", |
1776 | 1771 | "./soc/nuvoton/npcm/common/esiost/esiost.py", |
1777 | 1772 | "./soc/nuvoton/npcm/common/esiost/esiost_args.py", |
|
0 commit comments