Skip to content

Modernize python template#103

Merged
Ninja3047 merged 23 commits intomainfrom
modernize-python-template
Sep 10, 2025
Merged

Modernize python template#103
Ninja3047 merged 23 commits intomainfrom
modernize-python-template

Conversation

@Ninja3047
Copy link
Contributor

Based on work done in #47

there are some potentially controversial updates so I would like some feedback

  • renamed package target to build to be more consistent with uv (and other build tools) - cc00bcd
  • renamed reformat target to format to be more consistent with upcoming uv format (and other build tools) - 6de1e81
  • dropped complicated virtualenv management in Makefile - d0cc120
    • uv run already handles this in the background (including making a .venv and syncing the dev group) so I don't see a real reason to keep this around (ref https://docs.astral.sh/uv/concepts/projects/sync/#automatic-lock-and-sync). a question here would be to see if we should pass --frozen to everything and let dependabot handle uv.lock updates
    • INSTALL_EXTRA actually doesn't really do anything here either since uv run will sync the dev group by default
    • allowing customization of the venv would just lead to pain and potential breakage imo
  • remove the edit target - does anyone actually use this or find this useful? - d651385
  • fix dependabot to track uv updates - noticed in a different project that the uv.lock never got updated - f839f8a
  • use uv github action to install correct python version - 97f5813
  • drop python 3.9, add python 3.13, support for 3.9 ends next month. we can do this now or later - 26121f7
  • update zizmor to use the github action with advanced security - adc4a0b
  • add newline at the end of pyproject.toml to prevent people's editors from adding newlines from introducing unnecessary diffs - 9e1fbc5
  • exclude /.github from source distribution, it makes no sense to include these in the sdist since they only make sense in the context of github - dca8e19
  • bump ruff tag to latest as of writing - fbe292e

still need to test the new github workflows to make sure nothing broke

@CLAassistant
Copy link

CLAassistant commented Aug 31, 2025

CLA assistant check
All committers have signed the CLA.

@Ninja3047 Ninja3047 force-pushed the modernize-python-template branch from a08d9d2 to 0d0d966 Compare September 1, 2025 18:41
also use pyproject.toml as single source of truth for version since uv
does not support dynamic attribute
@Ninja3047 Ninja3047 force-pushed the modernize-python-template branch from 0d0d966 to 2509214 Compare September 1, 2025 18:58
Copy link
Contributor

@facutuesca facutuesca left a comment

Choose a reason for hiding this comment

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

LGTM! Only one question

@Ninja3047 Ninja3047 merged commit b28fa02 into main Sep 10, 2025
6 checks passed
@Ninja3047 Ninja3047 deleted the modernize-python-template branch September 10, 2025 14:39
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.

6 participants