-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 875 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 875 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
.PHONY: help install install-dev test lint format clean
help:
@echo "Available commands:"
@echo " make install - Install package"
@echo " make install-dev - Install package with dev dependencies"
@echo " make test - Run tests"
@echo " make lint - Run linters"
@echo " make format - Format code with black"
@echo " make clean - Remove build artifacts"
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
test:
pytest tests/ -v
test-cov:
pytest --cov=clamav_siggen --cov-report=html --cov-report=term tests/
lint:
pylint clamav_siggen/
mypy clamav_siggen/
format:
black clamav_siggen/ tests/
isort clamav_siggen/ tests/
clean:
rm -rf build/ dist/ *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache .mypy_cache htmlcov/ .coverage