Skip to content

Projektverwaltung auf uv und ruff umgestellt & Dependency Updates - #15

Merged
jkatins merged 7 commits into
masterfrom
uv-migration
Sep 30, 2026
Merged

jkatins merged 7 commits into
masterfrom
uv-migration

Conversation

@jkatins

@jkatins jkatins commented Sep 29, 2026

Copy link
Copy Markdown
Contributor
  • Poetry → uv (Aufbau wie im ToolSuite-Repo), Build-Backend uv_build.
  • ruff statt black/isort/flake8; alle ruff- und mypy-Befunde behoben.
  • Neuer CI-Job lint (ruff, mypy, Lock-Check).
  • Abhängigkeiten aktualisiert: invoke bleibt auf 2.x, CI auf Ubuntu 26.04 und MicroPython v1.29.0.
  • MicroPython 1.29 akzeptiert bei 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.

jkatins and others added 7 commits September 29, 2026 16:43
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>
@jkatins jkatins self-assigned this Sep 29, 2026
@jkatins
jkatins merged commit 6236147 into master Sep 30, 2026
13 of 14 checks passed
@jkatins
jkatins deleted the uv-migration branch September 30, 2026 08:04
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.

2 participants