|
2 | 2 | # |
3 | 3 | # SPDX-License-Identifier: MIT |
4 | 4 |
|
5 | | -# pylint: disable=global-statement,invalid-name,redefined-outer-name |
| 5 | +# pylint: disable=global-statement,invalid-name,redefined-outer-name,too-many-lines |
6 | 6 |
|
7 | 7 | """Star Trek TNG Data Dispenser Prop - Environmental Monitor. |
8 | 8 |
|
@@ -1095,7 +1095,7 @@ def build_graph(): |
1095 | 1095 | ) |
1096 | 1096 |
|
1097 | 1097 |
|
1098 | | -def update_graph(): # pylint: disable=too-many-locals |
| 1098 | +def update_graph(): # pylint: disable=too-many-locals,too-many-branches |
1099 | 1099 | """Redraw the graph bitmap from co2_history.""" |
1100 | 1100 | if graph_bmp is None: |
1101 | 1101 | return |
@@ -1296,7 +1296,7 @@ def _build_lcars_graph(title, unit, lo, hi, # pylint: disable=too-many-locals |
1296 | 1296 | return grp, bmp, pal, val_lbl, mm_lbl |
1297 | 1297 |
|
1298 | 1298 |
|
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 |
1300 | 1300 | zones, val_lbl, mm_lbl, |
1301 | 1301 | mn, mx, fmt_fn): |
1302 | 1302 | """Generic graph bitmap updater with dynamic bars.""" |
@@ -1632,7 +1632,7 @@ def update_stats(disp): |
1632 | 1632 | stats_batt_lbl.text = disp[7] |
1633 | 1633 |
|
1634 | 1634 |
|
1635 | | -def build_about(): # pylint: disable=too-many-locals |
| 1635 | +def build_about(): # pylint: disable=too-many-locals,too-many-statements |
1636 | 1636 | """Build the LCARS name badge display group.""" |
1637 | 1637 | global about_group |
1638 | 1638 |
|
@@ -1872,7 +1872,7 @@ def toggle_brightness(): |
1872 | 1872 | DEMO_HOLD = 3 # seconds per screen in demo mode |
1873 | 1873 |
|
1874 | 1874 |
|
1875 | | -def demo_mode(): |
| 1875 | +def demo_mode(): # pylint: disable=too-many-statements |
1876 | 1876 | """Auto-cycle all screens for video recording.""" |
1877 | 1877 | global graph_zoomed |
1878 | 1878 | print("Demo mode started") |
@@ -2057,7 +2057,7 @@ def read_sensors(): |
2057 | 2057 | return co2_r, hum_r, tmp_r, bat_r, bat_v, bat_rate |
2058 | 2058 |
|
2059 | 2059 |
|
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 |
2061 | 2061 | bat_r, _bat_v, bat_rate): |
2062 | 2062 | """Compute percentages and label text.""" |
2063 | 2063 | global is_charging, bolt_visible, volt_visible |
|
0 commit comments