Dependency Maintenance¶
Development dependencies use standard pyproject.toml groups and one native
uv.lock. The dependency contract defines the
boundaries; uv handles resolution, platform markers, hashes, and lock validity.
The standard installation includes the HTTP/GitHub OAuth runtime. CLI flags
activate interfaces; no OAuth installation extra is required.
Install the tools¶
Install a supported Python interpreter. Make installs uv itself from
tools/uv/requirements.txt, an exact version with the hashes of every PyPI
file, which Dependabot updates. The project declares a compatible minimum
rather than requiring Dependabot's updater to use that exact binary.
| Make target | Group | Purpose |
|---|---|---|
make venv |
none | Editable package and all runtime requirements |
make venv-dev |
quality |
Runtime plus Ruff, mypy, Bandit, pip-audit |
make venv-test |
test |
Runtime plus pytest, coverage, parallel tests |
make venv-package |
build |
Runtime plus distribution tools and build backend |
make venv-docs |
docs |
MkDocs site |
Every environment stays under its host/user-specific .venvs/<key>/ path.
Make passes that path through UV_PROJECT_ENVIRONMENT and selects only the
required group alongside the standard runtime for quality, test and build.
Docs-only jobs install only their documentation group. A shared lock does not
install every tool in every job.
Third-party tools use wheels; the release build uses its locked backend with
build isolation disabled, rather than resolving another backend version.
The uv cache also tracks .version, so a release version change refreshes
editable package metadata.
Change dependencies¶
Add or remove a tool with the native manager, for example:
Or edit the appropriate requirement in pyproject.toml and run make lock.
Commit the manifest and uv.lock together. Never hand-edit the lock.
make lock-check # uv lock --check; no regeneration
make refresh-dependencies # uv lock --upgrade within declared requirements
make check
make ci
make smoke
Requirements describe compatibility; the lock records exact installed versions.
New registry releases do not make an existing lock stale. CI installs with
--locked, so a missing/incompatible lock fails instead of being rewritten.
There is no second text-based lock comparison or unit-test lock parser.
Runtime requirements also have upper bounds. They become the wheel's metadata,
and pip/pipx installs resolve them at install time without the lock, so a
published release must not accept future versions that were never tested.
Packages whose internal extension points the adapter overrides are bounded more
tightly than the rest; pyproject.toml is the only place that states the
ranges. Dependency groups are never published and keep only lower bounds. To
adopt a newer release, raise the bound together with the lock and run the full
test suite; native executables always use the lock.
Dependabot¶
The root project uses package-ecosystem: uv. Dependabot updates direct and
transitive packages together in one Python version-update group, with weekly
checks, a seven-day version cooldown, one open version-update PR, and automatic
rebasing. versioning-strategy: increase-if-necessary keeps in-range releases
lock-only and raises a runtime upper bound in the same PR when a release falls
outside it, so CI tests the new range before merge. Actions have their own group. GitHub security alerts and grouped
security updates remain enabled in repository settings; their queue is
separate from the ordinary version-update schedule.
Keep Dependabot as the only automatic writer of its branches. CI does not repair locks or push commits. Merge application compatibility fixes through normal PRs and let Dependabot refresh its branch afterward. Retire the old pip update PR after this migration reaches main, then use the new uv updates; do not manually translate an old bot branch to the new format.
GitHub provides native uv alerts and security updates; no repository snapshot submission workflow is needed. After migration reaches main, check the repository's dependency graph and Dependabot update logs to confirm the hosted service sees the manifest, groups, and transitive locked versions. These are hosted integration checks, not claims made by a local synthetic updater test.
What CI checks¶
The native lock check and group installations run through Make. Application tests, coverage, live Joplin protocols, Windows/Linux compatibility, native distribution smoke tests, and strict documentation builds remain the acceptance criteria. A real incompatible update stays blocked; harmless lock formatting does not have an additional repository-specific validator.
make audit exports all groups from uv.lock into the standard PEP 751
.artifacts/audit/pylock.toml with uv export --locked, then uses pip-audit's
native --locked mode. This covers every locked platform variant, including
Windows-only packages, rather than filtering a requirements file for the
current Linux host. The export is ignored by Git and is never maintained
independently. Vulnerability findings remain blocking; the CI dependency-review
job is retained as well.
See the official uv/Dependabot integration and locking and syncing guide.