Skip to content

Switch dependency managment to uv - #1164

Open
marcospri wants to merge 3 commits into
masterfrom
switch-to-uv
Open

Switch dependency managment to uv#1164
marcospri wants to merge 3 commits into
masterfrom
switch-to-uv

Conversation

@marcospri

@marcospri marcospri commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

- name: Checkout
uses: actions/checkout@v6

- name: Setup Python

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping the GHA action version as in the authalligator counterpart.

- name: Mypy
run: mypy

check-compiled-requirements:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uv sync --locked should do this out of the box.

Comment thread .github/dependabot.yml
# Enable version updates for python
- package-ecosystem: "pip"
directory: "/requirements"
- package-ecosystem: "uv"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with the other PRs taking the opportunity to reduce noise.

from datetime import datetime, timedelta
from typing import Any

import more_itertools # type: ignore[import-not-found]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now do uv sync --locked & [{include-group="lint"}, {include-group="test"}] so the test group is now installed with lint.

Before we just did

  • name: Install production requirements (for Mypy)
    run: pip install --no-deps -r requirements/requirements-prod.txt

so this was not present.

Comment thread inbox/util/testutils.py

import attr
import dns
import pytest # type: ignore[import-not-found]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as inbox/events/remote_sync.py

Comment thread inbox/events/recurring.py

if len(excl_dates) > 0:
if not isinstance(rrules, rruleset):
rrules = rruleset().rrule(rrules)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't pin types-python-dateutil (same as before) so this changed. IMO that's fine.

@linear-code

linear-code Bot commented Sep 2, 2026

Copy link
Copy Markdown

BEP-56

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.

1 participant