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
24 lines (19 loc) · 741 Bytes
/
makefile
File metadata and controls
24 lines (19 loc) · 741 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
.DEFAULT_GOAL := deps
.PHONY: deps form lint test tox
deps: ## Install dependencies
python -m pip install --upgrade uv
python -m uv pip install -r requirements.txt
python -m uv pip install tox tox-uv
python -m uv pip install ruff==0.12.10
python -m uv pip install --upgrade flit
python -m uv pip install --upgrade pytest pytest-cov
form: ## Code formatting
python -m ruff format structuralcodes
python -m ruff format tests
lint: ## Linting and static type checking
python -m ruff check structuralcodes
python -m ruff check tests
test: ## Run tests and output reports
python -m pytest --junitxml=junit/test-results.xml --cov=structuralcodes --cov-report=term-missing --cov-report=xml
tox: ## Run tox
python -m tox -e py