Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v5
with:
cache: "pipenv"
enable-cache: true
- run: python -m pip install pipenv
- run: pipenv install
- run: make bootstrap
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ SRCDIR=.

.PHONY: bootstrap
bootstrap:
pipenv install --dev
uv sync --dev

.PHONY: check
check: black lint mypy

.PHONY: black
black:
pipenv run black --check $(SRCDIR)
uv run black --check $(SRCDIR)

.PHONY: lint
lint:
pipenv run ruff check $(SRCDIR)
uv run ruff check $(SRCDIR)

.PHONY: mypy
mypy:
pipenv run mypy $(SRCDIR)
uv run mypy $(SRCDIR)

.PHONY: fix
fix:
pipenv run black $(SRCDIR)
pipenv run ruff check --fix $(SRCDIR)
uv run black $(SRCDIR)
uv run ruff check --fix $(SRCDIR)

.PHONY: test
test:
pipenv run coverage run --module pytest $(SRCDIR)
pipenv run coverage report
pipenv run coverage html
uv run coverage run --module pytest $(SRCDIR)
uv run coverage report
uv run coverage html
17 changes: 0 additions & 17 deletions Pipfile

This file was deleted.

272 changes: 0 additions & 272 deletions Pipfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ However, hopefully you'll appreciate some of the ideas within!

## Features

* [Pipenv](https://pipenv.pypa.io/en/latest/)
* [uv](https://docs.astral.sh/uv/)
* Dependabot updates for Python dependencies and GitHub Actions
* Dependabot auto-merge for minor and patch-level updates
* Makefile with convenience commands
Expand Down
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[project]
name = "python-template"
version = "0"
readme = "README.md"
description = "Lorem ipsum dolor sit amet"
requires-python = ">=3.12"
dependencies = [
"structlog",
]

[tool.coverage.run]
branch = true
dynamic_context = "test_function"
Expand All @@ -24,3 +34,12 @@ select = [
"B", # flake8-bugbear
"INP", # flake8-no-pep420
]

[dependency-groups]
dev = [
"black",
"coverage",
"mypy",
"pytest",
"ruff",
]
251 changes: 251 additions & 0 deletions uv.lock

Large diffs are not rendered by default.