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
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Test

on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
UV_LOCKED: 1 # Ensure lockfile is up to date at test time

Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
*.egg-info/
*.pyc
*.pyo
/.coverage
/.venv/
/__pycache__/
/build/
/dist/
/htmlcov/
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ SRCDIR=src
TESTDIR=test
CODEDIRS=$(SRCDIR) $(TESTDIR)

.DEFAULT_GOAL := check

.PHONY: bootstrap
bootstrap:
uv sync --dev
Expand All @@ -26,6 +28,10 @@ fix:
uv run ruff format $(CODEDIRS)
uv run ruff check --fix $(CODEDIRS)

.PHONY: clean
clean:
git clean -X --force

.PHONY: test
test:
uv run coverage run --source $(SRCDIR) --module pytest test
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ select = [
"INP", # flake8-no-pep420
"PLC0415",
"TID253",
"RUF", # Ruff-specific rules
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"PERF", # Perflint
"LOG", # flake8-logging
]

[dependency-groups]
Expand Down
Empty file added src/python_template/py.typed
Empty file.
Loading