Skip to content
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

update python style guide #1002

Merged
merged 3 commits into from
Feb 20, 2025
Merged

update python style guide #1002

merged 3 commits into from
Feb 20, 2025

Conversation

leohemsted
Copy link
Contributor

@leohemsted leohemsted commented Feb 20, 2025

ruff format instead of black

we just use ruff format as a drop-in replacement for black now, and we were already using ruff for linting so this feels like a no-brainer

pyproject.toml instead of setup.py

pyproject.toml is the accepted way to define metadata for libraries

uv instead of pip-tools and pyenv

uv does the job of those tools, but faster! this may be marginally more contentious than the alternatives as it's a bit of a shift and means there's another requirement you need just to get your project running but notify switched to uv last november and it definitely speeds up builds, especially locally

we just use `ruff format` now as it's pretty close
to black in functionality, faster, and we're already
using ruff for linting so it's one less dependency
we should be using pyproject.toml for our libraries
one less tool! one less tool!
it's also much faster and more or less a drop in replacement
@leohemsted leohemsted changed the title remove references to black update python style guide Feb 20, 2025
@leohemsted leohemsted merged commit d2e5400 into main Feb 20, 2025
1 check passed
@leohemsted leohemsted deleted the python-style-guide branch February 20, 2025 14:28
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.

3 participants