Skip to content

Commit 290c813

Browse files
Merge pull request #91 from doismellburning/feature/uv
Replace Pipenv/Pipfile with uv
2 parents 171aa96 + e19f320 commit 290c813

File tree

7 files changed

+282
-301
lines changed

7 files changed

+282
-301
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: actions/setup-python@v5
12+
- uses: astral-sh/setup-uv@v5
1313
with:
14-
cache: "pipenv"
14+
enable-cache: true
1515
- run: python -m pip install pipenv
1616
- run: pipenv install
1717
- run: make bootstrap

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@ SRCDIR=.
22

33
.PHONY: bootstrap
44
bootstrap:
5-
pipenv install --dev
5+
uv sync --dev
66

77
.PHONY: check
88
check: black lint mypy
99

1010
.PHONY: black
1111
black:
12-
pipenv run black --check $(SRCDIR)
12+
uv run black --check $(SRCDIR)
1313

1414
.PHONY: lint
1515
lint:
16-
pipenv run ruff check $(SRCDIR)
16+
uv run ruff check $(SRCDIR)
1717

1818
.PHONY: mypy
1919
mypy:
20-
pipenv run mypy $(SRCDIR)
20+
uv run mypy $(SRCDIR)
2121

2222
.PHONY: fix
2323
fix:
24-
pipenv run black $(SRCDIR)
25-
pipenv run ruff check --fix $(SRCDIR)
24+
uv run black $(SRCDIR)
25+
uv run ruff check --fix $(SRCDIR)
2626

2727
.PHONY: test
2828
test:
29-
pipenv run coverage run --module pytest $(SRCDIR)
30-
pipenv run coverage report
31-
pipenv run coverage html
29+
uv run coverage run --module pytest $(SRCDIR)
30+
uv run coverage report
31+
uv run coverage html

Pipfile

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

Pipfile.lock

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ However, hopefully you'll appreciate some of the ideas within!
1212

1313
## Features
1414

15-
* [Pipenv](https://pipenv.pypa.io/en/latest/)
15+
* [uv](https://docs.astral.sh/uv/)
1616
* Dependabot updates for Python dependencies and GitHub Actions
1717
* Dependabot auto-merge for minor and patch-level updates
1818
* Makefile with convenience commands

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
[project]
2+
name = "python-template"
3+
version = "0"
4+
readme = "README.md"
5+
description = "Lorem ipsum dolor sit amet"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"structlog",
9+
]
10+
111
[tool.coverage.run]
212
branch = true
313
dynamic_context = "test_function"
@@ -24,3 +34,12 @@ select = [
2434
"B", # flake8-bugbear
2535
"INP", # flake8-no-pep420
2636
]
37+
38+
[dependency-groups]
39+
dev = [
40+
"black",
41+
"coverage",
42+
"mypy",
43+
"pytest",
44+
"ruff",
45+
]

uv.lock

Lines changed: 251 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)