Skip to content

Commit 380301b

Browse files
committed
build: 🔨 replace references to poetry with uv
1 parent ea6e008 commit 380301b

File tree

7 files changed

+11
-24
lines changed

7 files changed

+11
-24
lines changed

.cz.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
[tool.commitizen]
22
bump_message = "build(version): :bookmark: update version from $current_version to $new_version [skip ci]"
33
update_changelog_on_bump = true
4-
version_provider = "poetry"
5-
version_files = [
6-
"pyproject.toml"
7-
]
4+
version_provider = "uv"

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ justfile
1010
.gitignore
1111
ruff.toml
1212
pyproject.toml
13-
poetry.lock
13+
uv.lock

.github/sync.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ group:
1111
dest: .gitignore
1212
- source: justfile
1313
dest: justfile
14-
- source: poetry.toml
15-
dest: poetry.toml
1614
- source: .cz.toml
1715
dest: .cz.toml
1816
- source: ruff.toml

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ gh repo create NAME --template seedcase-project/template-python-project
99

1010
## Setting things up after cloning
1111

12-
To add Poetry:
13-
14-
``` bash
15-
cd new-project
16-
poetry init
17-
```
18-
1912
Search for `NAME` and `REPO` and replace them with the name of your project and the repository name. Then look for any `TODO` items.
2013

2114
## Setting things up

justfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ run-all: install-deps format-python check-python test-python check-commits build
66

77
# Install Python package dependencies
88
install-deps:
9-
poetry install
9+
uv synch
1010

1111
# Run the Python tests
1212
test-python:
13-
poetry run pytest
13+
uv run pytest
1414

1515
# Check Python code with the linter for any errors that need manual attention
1616
check-python:
17-
poetry run ruff check .
17+
uv run ruff check .
1818

1919
# Reformat Python code to match coding style and general structure
2020
format-python:
21-
poetry run ruff check --fix .
22-
poetry run ruff format .
21+
uv run ruff check --fix .
22+
uv run ruff format .
2323

2424
# Build the documentation website using Quarto
2525
build-website:
@@ -28,8 +28,8 @@ build-website:
2828
# Delete any previously built files from quartodoc.
2929
# -f is to not give an error if the files don't exist yet.
3030
rm -f docs/reference/*.qmd
31-
poetry run quartodoc build
32-
poetry run quarto render --execute
31+
uv run quartodoc build
32+
uv run quarto render --execute
3333

3434
# Run checks on commits with non-main branches
3535
check-commits:
@@ -38,7 +38,7 @@ check-commits:
3838
number_of_commits=$(git rev-list --count HEAD ^main)
3939
if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
4040
then
41-
poetry run cz check --rev-range main..HEAD
41+
uv run cz check --rev-range main..HEAD
4242
else
4343
echo "Can't either be on ${branch_name} or have more than ${number_of_commits}."
4444
fi

poetry.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)