Skip to content

Commit dfd5ed0

Browse files
Improve directory definitions in Makefile
1 parent d116326 commit dfd5ed0

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
SRCDIR=.
1+
SRCDIR=src
2+
TESTDIR=test
3+
CODEDIRS=$(SRCDIR) $(TESTDIR)
24

35
.PHONY: bootstrap
46
bootstrap:
@@ -9,23 +11,23 @@ check: black lint mypy
911

1012
.PHONY: black
1113
black:
12-
uv run black --check $(SRCDIR)
14+
uv run black --check $(CODEDIRS)
1315

1416
.PHONY: lint
1517
lint:
16-
uv run ruff check $(SRCDIR)
18+
uv run ruff check $(CODEDIRS)
1719

1820
.PHONY: mypy
1921
mypy:
20-
uv run mypy $(SRCDIR)
22+
uv run mypy $(CODEDIRS)
2123

2224
.PHONY: fix
2325
fix:
24-
uv run black $(SRCDIR)
25-
uv run ruff check --fix $(SRCDIR)
26+
uv run black $(CODEDIRS)
27+
uv run ruff check --fix $(CODEDIRS)
2628

2729
.PHONY: test
2830
test:
29-
uv run coverage run --source src --module pytest test
31+
uv run coverage run --source $(SRCDIR) --module pytest test
3032
uv run coverage report
3133
uv run coverage html

0 commit comments

Comments
 (0)