Repository navigation
Projektverwaltung auf uv und ruff umgestellt & Dependency Updates - #15
Merged
Merged
Conversation
Aufbau wie im ToolSuite-Repo: tox installiert nur invoke und uv, uv verwaltet das Projekt-venv aus uv.lock, die CI ruft `uv run inv` direkt auf. Build-Backend ist uv_build. Die Paketversionen entsprechen exakt dem bisherigen poetry.lock. README: uv als Installationsweg ergänzt; pip-Befehl nutzt jetzt `@<tag>`, da pip `#<tag>` ignoriert und master installiert hat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ruff ersetzt black, isort, flake8 und die flake8-Plugins (flake8-awesome, flake8-simplify, Flake8-pyproject), die Regelauswahl entspricht den bisherigen Plugins. Neu gemeldet wird B904; ohne ruff-Entsprechung entfallen flake8-annotations-complexity, flake8-expression-complexity und flake8-pytest. Die PyCharm-File-Watcher nutzen ruff statt black/isort. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Absichtlicher Code wird markiert statt geändert: Re-Exporte in __init__.py und die Appnotes-Skripte per per-file-ignores, öffentliche API-Namen (N802), Seiteneffekt-Imports und die im finally geschlossenen Dateien (SIM115) per noqa. SIM105 (contextlib.suppress) per noqa, da contextlib auf MicroPython fehlt; B904 abgeschaltet, da MicroPython bei "raise ... from" warnt. Stil-Befunde (else nach return/raise, verschachtelte ifs, dict()-Aufruf, map mit lambda, Zuweisung vor return) ohne Verhaltensänderung behoben. ruff check meldet damit nichts mehr, die mypy-Befunde bleiben unverändert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Die Typannotationen entsprechen jetzt dem tatsächlichen Verhalten, ohne Laufzeitänderung: crypto.py annotiert die Basisklassen statt der Registry-Variablen, bf3file.py grenzt Pfad/Dateiobjekt per isinstance ein, Optional-Typen in configid.py und conf_dict_to_list, InitEccAuthBlock nimmt wie die Basisklasse beliebige Encryptoren entgegen. bf2_unpack_payload kommt ohne None-Startmarke aus. mypy meldet damit nichts mehr, inv lint läuft fehlerfrei durch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Neuer Job lint im Workflow verify-bec2format: ruff check, ruff format --check, mypy und uv lock --check über inv lint, eingerichtet wie der Test-Job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README, CI-Schrittnamen, Kommentare im Build-Skript, die Fehlermeldung in appnotes/install_dependencies.py und der Docstring der CLI schreiben jetzt "MicroPython". Bezeichner, Pfade und URLs bleiben kleingeschrieben. Nebenbei behoben: Tippfehler "mananger" in der Fehlermeldung und "install_depepencies.py" im MicroPython-Beispiel der README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alle Pakete in uv.lock aktualisiert, invoke bleibt auf Version 2.x. CI: actions/checkout v7, setup-uv v10.2.0, MicroPython v1.29.0, Ubuntu 26.04. Anpassung an mypy 2, das bytearray nicht mehr als bytes behandelt: in CustKeyEncryptor.encrypt() eigene Variable für den bytearray-Puffer, ohne Verhaltensänderung. MicroPython 1.29 akzeptiert bei str.encode() nur noch utf-8/ascii: die b()-Hilfsfunktion der ecdsa-Kopie in den Appnotes erzeugt die Bytes jetzt ohne "latin-1"-Codec. Die README listet alle getesteten Kombinationen aus MicroPython-Version und Ubuntu statt nur v1.20.0 auf Ubuntu 20.04. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stefan-hoelzl
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
uv_build.lint(ruff, mypy, Lock-Check).str.encode()nur noch utf-8/ascii. Die ecdsa-Kopie in den Appnotes nutzte"latin-1"und ist angepasst. Lokal getestet mit MicroPython v1.20.0 bis v1.29.0.