File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Test
22
33on :
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+
914env :
1015 UV_LOCKED : 1 # Ensure lockfile is up to date at test time
1116
Original file line number Diff line number Diff line change 1+ * .egg-info /
2+ * .pyc
3+ * .pyo
14/.coverage
5+ /.venv /
6+ /__pycache__ /
7+ /build /
8+ /dist /
9+ /htmlcov /
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ SRCDIR=src
22TESTDIR =test
33CODEDIRS =$(SRCDIR ) $(TESTDIR )
44
5+ .DEFAULT_GOAL := check
6+
57.PHONY : bootstrap
68bootstrap :
79 uv sync --dev
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
3036test :
3137 uv run coverage run --source $(SRCDIR ) --module pytest test
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments