forked from fib-international/structuralcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (17 loc) · 690 Bytes
/
makefile
File metadata and controls
22 lines (17 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.DEFAULT_GOAL := deps
.PHONY: deps form lint test
PACKAGE_NAME = structuralcodes
deps: ## Install dependencies
python -m pip install --upgrade uv
python -m uv pip install -r requirements.txt
python -m uv pip install ruff==0.6.5
python -m uv pip install --upgrade flit
python -m uv pip install --upgrade pytest pytest-cov
form: ## Code formatting
python -m ruff format $(PACKAGE_NAME)
python -m ruff format tests
lint: ## Linting and static type checking
python -m ruff check $(PACKAGE_NAME)
python -m ruff check tests
test: ## Run tests and output reports
python -m pytest --junitxml=junit/test-results.xml --cov=$(PACKAGE_NAME) --cov-report=term-missing --cov-report=xml