8000 Switch from pipenv to uv and add pre-commit with ruff formatting by jeancochrane · Pull Request #18 · ccao-data/extract-permits · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Switch from pipenv to uv and add pre-commit with ruff formatting #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 15, 2025

Conversation

jeancochrane
Copy link
Contributor
@jeancochrane jeancochrane commented Apr 10, 2025

This PR makes two small changes to the codebase to bring it in line with our emerging Python standard:

  • Dependency management with uv instead of pipenv
  • Linting and formatting with ruff

It also cleans up the code and improves deduplication per #19.

See this workflow run for evidence that dependencies install successfully and the script doesn't throw any import errors when installing using uv.

@jeancochrane jeancochrane marked this pull request as ready for review April 10, 2025 18:50
@jeancochrane jeancochrane requested a review from wrridgeway April 10, 2025 18:50
Copy link
Member
@wrridgeway wrridgeway left a comment

Choose a reason for hiding this comment

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

Thanks for moving us towards more consistent project management!

- name: Setup Python
uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to use v4 or v5? Purely just curiosity.

Copy link
Contributor Author
@jeancochrane jeancochrane Apr 15, 2025

Choose a reason for hiding this comment

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

Good catch! I didn't realize there'd been so many new releases recently. I double-checked the changelog and all looks good, so I updated to v5 in 088630f and confirmed it executes correctly in this workflow run.

jeancochrane and others added 2 commits April 15, 2025 14:13
* Clean up and improve deduplication

* Remove unnecessary log line from permit_cleaning.py

* Remove note about code not yet being used in production
@jeancochrane jeancochrane merged commit 98fde39 into main Apr 15, 2025
1 of 2 checks passed
@jeancochrane jeancochrane deleted the jeancochrane/add-uv-and-pre-commit branch April 15, 2025 19:22
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
0