Skip to content

Move to uv & update dependencies#10

Merged
risktoparkrageram merged 13 commits intomainfrom
update-dependencies-python-versions
May 30, 2025
Merged

Move to uv & update dependencies#10
risktoparkrageram merged 13 commits intomainfrom
update-dependencies-python-versions

Conversation

@risktoparkrageram
Copy link

@risktoparkrageram risktoparkrageram commented May 28, 2025

This PR:

  • drops python 3.8 / 3.9, sets 3.11 as a default python version
  • updates dependencies
  • moves to uv from poetry
  • moves formatting to ruff from `black
  • simplifies the readme

@risktoparkrageram risktoparkrageram self-assigned this May 28, 2025
@risktoparkrageram risktoparkrageram requested a review from a team May 28, 2025 13:48
Comment on lines +27 to +32
python-version: ${{ matrix.python-version }}
python-version-file: ".python-version"
Copy link

Choose a reason for hiding this comment

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

if you want to test in multiple python versions, you have to use the matrix reference

Copy link
Author

Choose a reason for hiding this comment

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

👍 22663a1

pyproject.toml Outdated
build-backend = "hatchling.build"

[tool.uv]
dev-dependencies = [
Copy link

Choose a reason for hiding this comment

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

i think this is the deprecated format of specifiying dev dependencies

Copy link
Author

Choose a reason for hiding this comment

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

fixed here d4e9b04

cleaned_dict["match_end"] = match.end()
# create object containing results
return address.Address(**cleaned_dict)
return address.Address(
Copy link

Choose a reason for hiding this comment

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

is this a pydantic model? Wouldn't it be easier to just do address.Address.model_validate(cleaned_dict)

Copy link
Author

Choose a reason for hiding this comment

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

Hmm I think i tried that and mypy was still upset. Will have another look

Copy link
Author

Choose a reason for hiding this comment

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

apparently I'm mistaken. done here: b003f9f

("Colombie-Britannique", True),
("New Brunswick", True),
("Quebec", True),
("Quebec", True), # noqa PT014
Copy link

Choose a reason for hiding this comment

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

why duplicate?

Copy link
Author

Choose a reason for hiding this comment

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

("Québec", True) is the same as ("Quebec", True) according to ruff

Copy link

Choose a reason for hiding this comment

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

ah!

@risktoparkrageram
Copy link
Author

thanks for the review @janrito ⚡ ✌️ 🌃 🦤 🛖

@risktoparkrageram risktoparkrageram merged commit 8c0d82a into main May 30, 2025
4 checks passed
@risktoparkrageram risktoparkrageram deleted the update-dependencies-python-versions branch May 30, 2025 09:55
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