Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: apply pre-commit fixes #296

Closed
wants to merge 7 commits into from
Closed

Conversation

Bodong-Yang
Copy link
Member

No description provided.

@Bodong-Yang Bodong-Yang force-pushed the refactor/apply_pre_commit branch from 36e5fbf to 6fa2db4 Compare May 9, 2024 14:54
@Bodong-Yang Bodong-Yang marked this pull request as ready for review May 9, 2024 14:56
Copy link
Contributor

github-actions bot commented May 9, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py50100% 
__main__.py110%16
_utils
   __init__.py31583%69–71, 86, 88
   linux.py471176%45–47, 53, 63, 68, 70, 102–103, 127–128
   logging.py291451%41–44, 49–52, 54–55, 57–58, 62–63
   typing.py150100% 
app
   __main__.py110%16
   common.py3843989%65, 145, 251, 254–256, 271, 278–280, 346–348, 358, 367–369, 475, 487, 606, 610, 698, 700, 732–734, 736, 762–765, 770, 774–778, 804–805
   configs.py760100% 
   downloader.py2634483%70, 83–84, 299, 304, 308, 326–327, 377–381, 400–402, 405–406, 409–410, 431–434, 438–439, 443–444, 448–449, 458, 533–535, 551, 571–573, 577, 579, 582, 587–589
   errors.py1130100% 
   interface.py50100% 
   log_setting.py56787%42–43, 55, 57, 68–70
   main.py29293%44–45
   ota_client.py40114962%59–60, 80, 186–187, 200, 203, 207, 210, 247–250, 262–265, 268–269, 273–278, 288–291, 296–297, 299, 308, 311, 314, 316–317, 319–326, 329, 331, 334, 376–379, 384, 388, 391, 404–407, 410–417, 420–427, 433–436, 465, 468–469, 471, 474–477, 479–480, 485–486, 489, 503–510, 517, 520–526, 573–576, 584, 620, 625–628, 633–635, 638–639, 641–642, 644–645, 647, 707–708, 711, 719–720, 723, 734–735, 738, 746–747, 750, 761, 780, 791–792, 809, 828, 832–833, 848
   ota_client_call.py38684%42–44, 80–82
   ota_client_service.py27388%55–57
   ota_client_stub.py39410972%76–78, 80–81, 89–92, 95–97, 101, 106–107, 109–110, 113, 115–116, 119–121, 124–125, 128–130, 135–140, 144, 147–151, 153–154, 162–164, 167, 204–206, 211, 247, 272, 275, 278, 382, 408, 410, 436, 486, 543, 613–614, 653, 672–674, 680–683, 687–689, 696–698, 701, 705–708, 761, 848–850, 857, 887–888, 891–895, 904–913, 920, 926, 929–930, 934, 937
   ota_metadata.py3153289%143, 148, 184–185, 195–196, 199, 211, 269, 279–282, 321–324, 404, 407, 415–417, 430, 439–440, 443–444, 717–718, 721, 725, 728
   ota_status.py14285%34, 42
   update_stats.py105298%159, 169
app/boot_control
   __init__.py40100% 
   _common.py2357866%72–73, 94–96, 112–113, 133–134, 153–154, 173–174, 193–194, 209–210, 231, 239, 257, 265, 284–285, 288–289, 312, 314–323, 325–334, 336–338, 357, 360, 368, 376, 392–394, 396–401, 494, 499, 504, 563–564, 618, 622–623, 626, 634, 636–637, 711–712, 722, 740
   _grub.py42112969%216, 264–267, 273–277, 314–315, 322–327, 330–336, 339, 342–344, 349, 351–353, 362–368, 370–371, 373–375, 384–386, 388–390, 469–470, 474–475, 527, 533, 559, 581, 585–586, 601–603, 627–630, 642, 646–648, 650–652, 711–714, 739–742, 765–768, 780–781, 784–785, 820, 826, 846–847, 849, 861, 864, 867, 870, 874–876, 894–897, 925–928, 933–941, 946–954
   _jetson_cboot.py40528330%50, 73, 119–124, 126, 131–132, 137–140, 147–148, 156–157, 164–165, 172–173, 178–179, 197–206, 218, 225–226, 238, 244–245, 255–257, 269–270, 279–280, 282–284, 287–288, 291, 295, 299, 302–304, 307–308, 310, 344–347, 350–351, 354–358, 361–362, 366–367, 372–373, 375–379, 381–387, 389–390, 395, 398, 401–402, 405, 409–410, 414–415, 419, 422, 425, 429–435, 437–439, 444, 447, 450, 454, 461, 463–466, 479, 482, 486, 488–490, 494, 505, 520, 522, 525, 531–532, 537, 545, 553–555, 564–565, 567–569, 575, 578–580, 584–585, 587, 590, 603–605, 607–608, 611–617, 619–621, 623–627, 629, 633–636, 638, 640, 644, 649–650, 653, 668–670, 673, 676, 679–684, 686–688, 691, 694, 698–703, 707–709, 714–715, 719–720, 723, 726, 729–730, 733, 736–737, 742, 745, 748–749, 751, 753, 756, 759, 761–762, 765–769, 774–775, 777, 780–781, 783–786, 789, 792–793, 798, 801, 804–812, 817–825, 830–838, 844–846, 849, 852
   _rpi_boot.py25912252%84–86, 92–93, 95–97, 99, 102–103, 108–109, 118–119, 123, 125, 131, 135–138, 143–145, 149–152, 176–178, 184–186, 199–201, 207–209, 222–229, 231, 235–237, 240–243, 246–247, 252, 256, 260, 264, 298, 325–327, 337–340, 344–350, 390–392, 434–438, 457–460, 465, 468, 492–495, 500–508, 513–521, 535–538, 544–546, 549
   configs.py450100% 
   protocol.py40100% 
   selecter.py382631%44–46, 49–50, 54–55, 58–60, 63, 65, 69, 77–79, 81–82, 84–85, 89, 91–93, 95, 97
app/create_standby
   __init__.py12558%28–30, 32, 34
   common.py2164579%58, 61–62, 66–68, 70, 72–74, 77, 79, 125, 173–175, 177–179, 181, 184–187, 191, 202, 276–277, 279–284, 296, 340, 343–345, 361–362, 376, 380, 405–406
   interface.py60100% 
   rebuild_mode.py89198%103
app/proto
   __init__.py31390%37, 44–45
   _common.py4024688%87, 165, 172, 184–186, 205, 210, 221, 257, 263, 268, 299, 303, 307, 402, 462, 469, 472, 492, 499, 501, 526, 532, 535, 537, 562, 568, 571, 573, 602, 606, 608, 622, 639, 666, 669, 673, 676, 704, 710, 757–760, 762
   _ota_metafiles_wrapper.py841384%38, 41–43, 113–117, 123–126
   _otaclient_v2_pb2_wrapper.py2612391%86, 89–92, 131, 209–210, 212, 259, 262–263, 506–508, 512–513, 515, 518–519, 522–523, 588
   streamer.py43881%33, 48, 66–67, 72, 81–82, 100
   wrapper.py40100% 
configs
   __init__.py10100% 
   _common.py80100% 
   ecu_info.py58198%107
   proxy_info.py53296%88, 90
ota_proxy
   __init__.py31680%59, 61, 63, 72, 81–82
   __main__.py770%16–18, 20, 22–23, 25
   _consts.py150100% 
   cache_control.py68494%71, 91, 113, 121
   config.py180100% 
   db.py1461589%75, 81, 103, 113, 116, 145–147, 166, 199, 208–209, 229, 258, 300
   errors.py50100% 
   orm.py1131091%93, 98, 103, 109, 115, 142–143, 156, 233, 237
   ota_cache.py4048878%97–98, 217, 228, 255–257, 277, 293–294, 296, 319–320, 326, 330, 332, 361–365, 381, 442–443, 485–486, 556, 569–572, 622, 641–642, 674–675, 686, 720–724, 728–730, 732, 734–741, 743–745, 748–749, 753–754, 758, 805, 813–815, 894–897, 901, 904–905, 919–920, 922–924, 928–929, 935–936, 967, 973, 1000, 1029–1031
   server_app.py1383276%76, 79, 85, 101, 103, 213–214, 216–218, 221, 226–228, 231–232, 235, 238, 241, 244, 257–258, 261–262, 264, 267, 313–315, 321–323
   utils.py23195%33
TOTAL5996137577% 

Tests Skipped Failures Errors Time
179 0 💤 0 ❌ 0 🔥 4m 59s ⏱️

Copy link

sonarqubecloud bot commented May 9, 2024

@Bodong-Yang Bodong-Yang closed this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant