-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 797 Bytes
/
Makefile
File metadata and controls
45 lines (35 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SOURCES = ./pybsn/ ./bin/ ./examples/ ./test/
FLAKE8_SOURCES = ./pybsn/ ./bin/* ./examples/*.py ./test/*.py
.PHONY: fast-lint
fast-lint:
uv run ruff check $(SOURCES)
uv run isort --check $(SOURCES)
uv run black --check $(SOURCES)
.PHONY: lint
lint: fast-lint
.PHONY: check
check:
uv run mypy pybsn
.PHONY: fix
fix:
uv run ruff check --fix $(SOURCES)
uv run isort $(SOURCES)
uv run black $(SOURCES)
.PHONY: coverage
coverage:
uv run coverage run --omit */*-packages/* -m unittest discover -v
.PHONY: coverage-report
coverage-report:
uv run coverage report
.PHONY: install-deps
install-deps:
uv sync --all-extras
.PHONY: sync
sync:
uv sync --all-extras
.PHONY: reformat
reformat:
uv run black $(SOURCES)
.PHONY: test
test:
uv run --with .[test] python -m unittest discover -v