-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 909 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (31 loc) · 909 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
.PHONY: help install test lint format clean build
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make test - Run tests"
@echo " make lint - Run all linters"
@echo " make format - Format code with ruff"
@echo " make clean - Clean build artifacts"
@echo " make build - Build package"
install:
poetry install
test:
poetry run pytest
test-cov:
poetry run pytest --cov=pymultichange --cov-report=html --cov-report=term
lint:
poetry run ruff check .
poetry run pylint pymultichange
poetry run mypy pymultichange
format:
poetry run ruff format .
poetry run ruff check --fix .
clean:
rm -rf build dist .eggs *.egg-info
rm -rf .pytest_cache .mypy_cache .ruff_cache
rm -rf htmlcov .coverage
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build:
poetry build
all: lint test