Run started:2026-11-24 03:30:04.961084+00:00

Test results:
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/boids/reynolds.py:170:12
169	        if p.init == "array":
170	            assert self._initial is not None
171	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/cyclic.py:109:12
108	        if p.init == "array":
109	            assert self._initial is not None
110	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/elementary.py:92:12
91	        if p.init == "array":
92	            assert self._initial is not None
93	            tape = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/generations.py:135:8
134	    if compiled is None:
135	        assert reason is not None
136	        raise _GenerationsError(text, reason)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/generations.py:249:12
248	        if p.init == "array":
249	            assert self._initial is not None
250	            state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/hashlife/multistate/universe.py:626:8
625	        tree looked at."""
626	        assert isinstance(snapshot, _StateSnapshot)
627	        if snapshot._states > self.states:

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/hashlife/multistate/universe.py:1316:12
1315	            edge = _leaf_edge(unpack(store.data[n]), which)
1316	            assert edge is not None  # the node is non-empty
1317	            r = edge

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/lifelike.py:114:12
113	        if p.init == "array":
114	            assert self._initial is not None
115	            state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/ltl.py:386:12
385	        if p.init == "array":
386	            assert self._initial is not None
387	            state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/mergelife.py:216:12
215	        if p.init == "array":
216	            assert self._initial is not None
217	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/rulefile.py:1052:4
1051	        raise RuleFileError("no '@TABLE' or '@TREE' section", None)
1052	    assert source is not None
1053	    kept_colors = tuple(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/ruletable.py:259:12
258	        if p.init == "array":
259	            assert self._initial is not None
260	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/ca/wireworld.py:166:12
165	        if p.init == "array":
166	            assert self._initial is not None
167	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/evolve/ga.py:60:4
59	            winner = challenger
60	    assert winner is not None
61	    return winner

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/evolve/ga.py:198:8
197	                self._admit(mutate(self.population[parent_idx].genome, self.rng))
198	        assert self.best is not None
199	        return self.best

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/evolve/objective.py:153:8
152	    def largest_rect_fraction(self, stats: dict[str, float]) -> float:
153	        assert self.e2 is not None
154	        mask = self.e2[0] == stats["mode"]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/engine.py:99:8
98	    if viewport.has_reference:
99	        assert viewport.reference_re is not None and viewport.reference_im is not None
100	        dr = decimal_text.difference_x(viewport.center_re, viewport.reference_re)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/engine.py:229:4
228	    )
229	    assert derivative is not None
230	    return counts, final, status, derivative

--------------------------------------------------
>> Issue: [B105:hardcoded_password_string] Possible hardcoded password: 'true'
   Severity: Low   Confidence: Medium
   CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b105_hardcoded_password_string.html
   Location: src/heaton_life/fractal/locations.py:521:24
520	    if token in ("true", "false"):
521	        return token == "true"
522	    token = token.replace("_", "")

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/movie.py:501:8
500	            )
501	        assert fields.smooth is not None
502	        frequency = measure_frequency(fields.counts, fields.smooth)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/movie.py:744:12
743	            )
744	            assert fields.smooth is not None
745	            params = survey.phase(zoom, phase) if track_color else phase

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/movie.py:752:16
751	            if shade is not None:
752	                assert fields.distance is not None
753	                rgb = shade_distance(rgb, fields.distance, shade)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/perturbation.py:63:4
62	    )
63	    assert derivative is not None
64	    return counts, final, derivative

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/perturbation_t2.py:290:4
289	    levels = () if table is None or not table.live else table.levels
290	    assert not levels or rebase_orbit is None, "BLA at T2 is Mandelbrot's (one orbit)"
291	    sizes = [level.rm.size for level in levels]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/fractal/perturbation_t2.py:296:8
295	    if track:
296	        assert derivative is not None
297	        d0, add = derivative

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/init/formats.py:404:12
403	            live = rle_measure(text).live
404	            assert live is not None  # a trimmed decode has a live cell
405	            x, y = x + live[0], y + live[1]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/init/formats.py:411:8
410	        cells, rule = rle_decode(text, max_cells=max_cells, trim=True)
411	        assert extent.live is not None  # a trimmed decode has a live cell
412	        x, y = x0 + extent.live[0], y0 + extent.live[1]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/init/formats.py:426:4
425	    world = info.bounded_grid
426	    assert world is not None
427	    left, top = -(world.width // 2), -(world.height // 2)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/init/images.py:89:4
88	        pos = body + length + 4
89	    assert header is not None
90	    if not saw_data:

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/lenia/base.py:52:12
51	        if p.init == "array":
52	            assert self._initial is not None
53	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/lenia/flow.py:77:8
76	        )
77	        assert isinstance(params, FlowLeniaParams)
78	        super().__init__(params, initial)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/app.py:204:8
203	        bar = self.statusBar()
204	        assert bar is not None
205	        bar.addPermanentWidget(self._status_sps)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/app.py:341:8
340	        or "" (don't load)."""
341	        assert self._family is not None
342	        box = QMessageBox(self)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/canvas.py:155:8
154	        pixel), stretched by the part of a pinch not yet taken as a zoom step."""
155	        assert self._image is not None and self._target is not None
156	        target = self._target

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/canvas.py:173:8
172	    def _paint_overlay(self, painter: QPainter, target: QRect) -> None:
173	        assert self._overlay is not None
174	        points = np.asarray(self._overlay["points"], dtype=np.float64)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/canvas.py:176:8
175	        world = self._overlay["world"]
176	        assert isinstance(world, tuple)
177	        if points.size == 0:

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/canvas.py:337:8
336	    def _view_moved(self) -> None:
337	        assert self._nav is not None
338	        self._update_cursor()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/engine.py:342:8
341	        reports instead of escaping the slot, which would abort the app."""
342	        assert self._sim is not None
343	        try:

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/fractal_sim.py:85:4
84	def make_mandelbrot(p: Params) -> _RenderField:
85	    assert isinstance(p, MandelbrotSimParams)
86	    return Mandelbrot(max_iter=p.max_iter)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/fractal_sim.py:90:4
89	def make_julia(p: Params) -> _RenderField:
90	    assert isinstance(p, JuliaSimParams)
91	    return Julia(c=complex(p.c_re, p.c_im), max_iter=p.max_iter)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/fractal_sim.py:95:4
94	def make_burning_ship(p: Params) -> _RenderField:
95	    assert isinstance(p, BurningShipSimParams)
96	    return BurningShip(max_iter=p.max_iter)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/fractal_sim.py:100:4
99	def make_newton(p: Params) -> _RenderField:
100	    assert isinstance(p, NewtonSimParams)
101	    return Newton(degree=p.degree, max_iter=p.max_iter)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/hashlife_sim.py:152:4
151	    """The first field the engine would reject, as (field, message), or None."""
152	    assert isinstance(params, HashLifeSimParams)
153	    problem = _hot_problem(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/hashlife_sim.py:178:8
177	        """Load the pattern, adopt its rule, and fit the view to it."""
178	        assert isinstance(params, HashLifeSimParams)
179	        universe = load_pattern(params.pattern, params.max_memory_mb)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/lifelike_sim.py:251:4
250	    does."""
251	    assert isinstance(params, LifeLikeSimParams)
252	    if params.init != "pattern" or params.pattern in BUILTIN_NAMES:

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/lifelike_sim.py:278:4
277	    """The first field the engine would reject, as (field, message), or None."""
278	    assert isinstance(params, LifeLikeSimParams)
279	    try:

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/lifelike_sim.py:306:8
305	        room, and its rule adopted."""
306	        assert isinstance(params, LifeLikeSimParams)
307	        size = (params.width, params.height)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/param_form.py:232:12
231	            widget = self._widgets[name]
232	            assert isinstance(widget, QSpinBox)
233	            widget.setValue(random.randrange(int(min(maximum, 2_147_483_647)) + 1))

--------------------------------------------------
>> Issue: [B311:blacklist] Standard pseudo-random generators are not suitable for security/cryptographic purposes.
   Severity: Low   Confidence: High
   CWE: CWE-330 (https://cwe.mitre.org/data/definitions/330.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/blacklists/blacklist_calls.html#b311-random
   Location: src/heaton_life/playground/param_form.py:233:28
232	            assert isinstance(widget, QSpinBox)
233	            widget.setValue(random.randrange(int(min(maximum, 2_147_483_647)) + 1))
234	

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/param_form.py:242:12
241	            widget = self._widgets[spec.name]
242	            assert isinstance(widget, QLineEdit)
243	            current = Path(widget.text()).expanduser()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:152:4
151	def _hot_lifelike(sim: Simulation, params: Params) -> Simulation:
152	    assert isinstance(sim, LifeLikeSim) and isinstance(params, LifeLikeSimParams)
153	    sim.apply(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:163:4
162	        return None
163	    assert isinstance(params, LifeLikeSimParams)
164	    name = Path(params.pattern).name

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:226:4
225	def _hot_hashlife(sim: Simulation, params: Params) -> Simulation:
226	    assert isinstance(sim, HashLifeSim) and isinstance(params, HashLifeSimParams)
227	    sim.apply(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:232:4
231	def _paint_hashlife(sim: Simulation, x: int, y: int, button: int) -> Simulation | None:
232	    assert isinstance(sim, HashLifeSim)
233	    return sim if sim.paint(x, y, button) else None

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:237:4
236	def _hashlife_view(params: Params) -> LifeView:
237	    assert isinstance(params, HashLifeSimParams)
238	    return _hashlife_view_of(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:242:4
241	def _hashlife_set_view(params: Params, view: LifeView, size: tuple[int, int]) -> Params:
242	    assert isinstance(params, HashLifeSimParams)
243	    return _hashlife_with_view(params, view, size)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:247:4
246	def _hashlife_frame_size(params: Params) -> tuple[int, int]:
247	    assert isinstance(params, HashLifeSimParams)
248	    return params.width, params.height

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:307:4
306	def _build_elementary(params: Params) -> Simulation:
307	    assert isinstance(params, ElementaryParams)
308	    return Elementary.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:312:4
311	def _hot_elementary(sim: Simulation, params: Params) -> Simulation:
312	    assert isinstance(params, ElementaryParams)
313	    return Elementary(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:348:4
347	def _build_cyclic(params: Params) -> Simulation:
348	    assert isinstance(params, CyclicParams)
349	    return Cyclic.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:353:4
352	def _hot_cyclic(sim: Simulation, params: Params) -> Simulation:
353	    assert isinstance(params, CyclicParams)
354	    return Cyclic(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:397:4
396	def _build_wireworld(params: Params) -> Simulation:
397	    assert isinstance(params, WireworldParams)
398	    return Wireworld.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:402:4
401	def _hot_wireworld(sim: Simulation, params: Params) -> Simulation:
402	    assert isinstance(params, WireworldParams)
403	    return Wireworld(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:440:4
439	def _build_mergelife(params: Params) -> Simulation:
440	    assert isinstance(params, MergeLifeParams)
441	    return MergeLife.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:445:4
444	def _hot_mergelife(sim: Simulation, params: Params) -> Simulation:
445	    assert isinstance(params, MergeLifeParams)
446	    return MergeLife(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:455:4
454	def _validate_mergelife(params: Params) -> tuple[str, str] | None:
455	    assert isinstance(params, MergeLifeParams)
456	    message = parse_rule_error(params.rule)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:470:4
469	def _build_grayscott(params: Params) -> Simulation:
470	    assert isinstance(params, GrayScottParams)
471	    return GrayScott.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:475:4
474	def _hot_grayscott(sim: Simulation, params: Params) -> Simulation:
475	    assert isinstance(params, GrayScottParams)
476	    return GrayScott(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:551:4
550	def _build_lenia_classic(params: Params) -> Simulation:
551	    assert isinstance(params, LeniaParams)
552	    return ClassicLenia.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:556:4
555	def _hot_lenia_classic(sim: Simulation, params: Params) -> Simulation:
556	    assert isinstance(params, LeniaParams)
557	    return ClassicLenia(**_lenia_kwargs(params, np.asarray(sim.state)))  # type: ignore[arg-type]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:561:4
560	def _build_lenia_asymptotic(params: Params) -> Simulation:
561	    assert isinstance(params, LeniaParams)
562	    return AsymptoticLenia.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:566:4
565	def _hot_lenia_asymptotic(sim: Simulation, params: Params) -> Simulation:
566	    assert isinstance(params, LeniaParams)
567	    return AsymptoticLenia(**_lenia_kwargs(params, np.asarray(sim.state)))  # type: ignore[arg-type]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:571:4
570	def _build_lenia_flow(params: Params) -> Simulation:
571	    assert isinstance(params, FlowLeniaParams)
572	    return FlowLenia.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:576:4
575	def _hot_lenia_flow(sim: Simulation, params: Params) -> Simulation:
576	    assert isinstance(params, FlowLeniaParams)
577	    kwargs = _lenia_kwargs(params, np.asarray(sim.state))

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:648:4
647	def _build_boids(params: Params) -> Simulation:
648	    assert isinstance(params, BoidsParams)
649	    return Boids.from_params(params)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:653:4
652	def _hot_boids(sim: Simulation, params: Params) -> Simulation:
653	    assert isinstance(params, BoidsParams)
654	    return Boids(

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:677:4
676	        return
677	    assert isinstance(sim, Boids)
678	    strength = sim.params.max_speed * 0.8

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/registry.py:757:8
756	    def paint(sim: Simulation, x: int, y: int, button: int) -> Simulation | None:
757	        assert isinstance(sim, FractalSim)
758	        return zoom_paint(sim, x, y, button, build, zoom_max)  # type: ignore[arg-type]

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:33:8
32	        style = self.style()
33	        assert style is not None
34	

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:36:8
35	        play = self.addAction(style.standardIcon(QStyle.StandardPixmap.SP_MediaPlay), "Play")
36	        assert play is not None
37	        play.setCheckable(True)

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:43:8
42	        step = self.addAction(style.standardIcon(QStyle.StandardPixmap.SP_MediaSeekForward), "Step")
43	        assert step is not None
44	        step.setShortcut("N")

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:48:8
47	        reset = self.addAction(style.standardIcon(QStyle.StandardPixmap.SP_BrowserReload), "Reset")
48	        assert reset is not None
49	        reset.setShortcut("R")

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:86:8
85	        )
86	        assert snapshot is not None
87	        snapshot.setShortcut("Ctrl+S")

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:93:8
92	        )
93	        assert pattern is not None
94	        pattern.setShortcut("Ctrl+Shift+S")

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/playground/transport.py:119:8
118	        style = self.style()
119	        assert style is not None
120	        icon = (

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/rd/gray_scott.py:119:12
118	        if p.init == "array":
119	            assert self._initial is not None
120	            self._state = self._initial.copy()

--------------------------------------------------
>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
   Severity: Low   Confidence: High
   CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
   More Info: https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html
   Location: src/heaton_life/render/palette.py:265:4
264	        return rule_table_palette(rule)
265	    assert isinstance(rule, StateRule)
266	    return multistate_palette(rule.states)

--------------------------------------------------

Code scanned:
	Total lines of code: 25129
	Total lines skipped (#nosec): 0
	Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
	Total issues (by severity):
		Undefined: 0
		Low: 87
		Medium: 0
		High: 0
	Total issues (by confidence):
		Undefined: 0
		Low: 0
		Medium: 1
		High: 86
Files skipped (0):
