lightly-ai/lightly
Mypy and numpy incompatible through `make install-dev`
Offen
#2.015 geöffnet am 04.08.2026
enhancementgood first issuehelp wantedpackage
Repository-Metriken
- Stars
- (3.775 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
I had the issue that make install-dev installed a numpy 2.x.x version, which was incompatible with our pinned mypy version in pyproject.toml. We should move to a lockfile approach like in LightlyTrain and clean up the dependency handling overall while we're at it.
- unpin the mypy version, and instead use
>=operator - create
make lockcommand in the Makefile with a pinnedEXCLUDE_NEWER_DATEinside the Makefile, so that the lock does not constantly change - use
uv run --frozenin all the make commands instead ofpython - move
devoptional dependencies to auvgroup instead (dependency-groups), so that the dev group is not actually distributed via PyPI - update the
CONTRIBUTING.mdfile to reflect the workflow changes (no need to activate the virtual env anymore) - update any agent files (
CLAUDE.mdetc.) to instruct the agent to always useuv run --frozeninstead ofpython
If anyone would like to work on this (or parts of it; we can also split this into sub-issues), let me know!