mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
readded per khalims request
This commit is contained in:
parent
d3e9fd41e6
commit
547f50550b
1 changed files with 30 additions and 0 deletions
30
Makefile
Normal file
30
Makefile
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# Project Makefile
|
||||||
|
|
||||||
|
PYTHON = python
|
||||||
|
|
||||||
|
.PHONY: setup test lint typecheck check clean
|
||||||
|
|
||||||
|
# Install dev dependencies + tox
|
||||||
|
setup:
|
||||||
|
$(PYTHON) -m pip install --upgrade pip
|
||||||
|
$(PYTHON) -m pip install tox black ruff mypy
|
||||||
|
|
||||||
|
# Run tests (pass ARGS="..." for specific tests)
|
||||||
|
test:
|
||||||
|
tox -- $(ARGS)
|
||||||
|
|
||||||
|
# Code formatting check + linting
|
||||||
|
lint:
|
||||||
|
ruff .
|
||||||
|
black --check .
|
||||||
|
|
||||||
|
# Static type checks
|
||||||
|
typecheck:
|
||||||
|
mypy .
|
||||||
|
|
||||||
|
# Full quality check (all checks + tests)
|
||||||
|
check: lint typecheck test
|
||||||
|
|
||||||
|
# Clean up tox environments
|
||||||
|
clean:
|
||||||
|
rm -rf .tox
|
||||||
Loading…
Add table
Reference in a new issue