Skip to content

Commit 4b60905

Browse files
Merge pull request #135 from doismellburning/feat/small-improvements
feat: Assorted small improvements
2 parents 4a95089 + fb5c5a8 commit 4b60905

5 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Test
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:
78
- "main"
89

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
env:
1015
UV_LOCKED: 1 # Ensure lockfile is up to date at test time
1116

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
*.egg-info/
2+
*.pyc
3+
*.pyo
14
/.coverage
5+
/.venv/
6+
/__pycache__/
7+
/build/
8+
/dist/
9+
/htmlcov/

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ SRCDIR=src
22
TESTDIR=test
33
CODEDIRS=$(SRCDIR) $(TESTDIR)
44

5+
.DEFAULT_GOAL := check
6+
57
.PHONY: bootstrap
68
bootstrap:
79
uv sync --dev
@@ -26,6 +28,10 @@ fix:
2628
uv run ruff format $(CODEDIRS)
2729
uv run ruff check --fix $(CODEDIRS)
2830

31+
.PHONY: clean
32+
clean:
33+
git clean -X --force
34+
2935
.PHONY: test
3036
test:
3137
uv run coverage run --source $(SRCDIR) --module pytest test

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ select = [
3939
"INP", # flake8-no-pep420
4040
"PLC0415",
4141
"TID253",
42+
"RUF", # Ruff-specific rules
43+
"PT", # flake8-pytest-style
44+
"SIM", # flake8-simplify
45+
"PERF", # Perflint
46+
"LOG", # flake8-logging
4247
]
4348

4449
[dependency-groups]

src/python_template/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)