Skip to content

Commit b07baec

Browse files
committed
Update code.py
Six fixes for the CI failures
1 parent 2e710c6 commit b07baec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Star_Trek_Data_Dispenser/code.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
# pylint: disable=global-statement,invalid-name,redefined-outer-name
5+
# pylint: disable=global-statement,invalid-name,redefined-outer-name,too-many-lines
66

77
"""Star Trek TNG Data Dispenser Prop - Environmental Monitor.
88
@@ -1095,7 +1095,7 @@ def build_graph():
10951095
)
10961096

10971097

1098-
def update_graph(): # pylint: disable=too-many-locals
1098+
def update_graph(): # pylint: disable=too-many-locals,too-many-branches
10991099
"""Redraw the graph bitmap from co2_history."""
11001100
if graph_bmp is None:
11011101
return
@@ -1296,7 +1296,7 @@ def _build_lcars_graph(title, unit, lo, hi, # pylint: disable=too-many-locals
12961296
return grp, bmp, pal, val_lbl, mm_lbl
12971297

12981298

1299-
def _update_lcars_graph(bmp, history, lo, hi, # pylint: disable=too-many-locals
1299+
def _update_lcars_graph(bmp, history, lo, hi, # pylint: disable=too-many-locals,too-many-branches
13001300
zones, val_lbl, mm_lbl,
13011301
mn, mx, fmt_fn):
13021302
"""Generic graph bitmap updater with dynamic bars."""
@@ -1632,7 +1632,7 @@ def update_stats(disp):
16321632
stats_batt_lbl.text = disp[7]
16331633

16341634

1635-
def build_about(): # pylint: disable=too-many-locals
1635+
def build_about(): # pylint: disable=too-many-locals,too-many-statements
16361636
"""Build the LCARS name badge display group."""
16371637
global about_group
16381638

@@ -1872,7 +1872,7 @@ def toggle_brightness():
18721872
DEMO_HOLD = 3 # seconds per screen in demo mode
18731873

18741874

1875-
def demo_mode():
1875+
def demo_mode(): # pylint: disable=too-many-statements
18761876
"""Auto-cycle all screens for video recording."""
18771877
global graph_zoomed
18781878
print("Demo mode started")
@@ -2057,7 +2057,7 @@ def read_sensors():
20572057
return co2_r, hum_r, tmp_r, bat_r, bat_v, bat_rate
20582058

20592059

2060-
def compute_display(co2_r, hum_r, tmp_r, # pylint: disable=too-many-locals
2060+
def compute_display(co2_r, hum_r, tmp_r, # pylint: disable=too-many-locals,too-many-branches
20612061
bat_r, _bat_v, bat_rate):
20622062
"""Compute percentages and label text."""
20632063
global is_charging, bolt_visible, volt_visible

0 commit comments

Comments
 (0)