WIP: linter setup
This commit is contained in:
parent
2a3538ac9e
commit
a9fec56176
5 changed files with 274 additions and 0 deletions
39
Makefile
Normal file
39
Makefile
Normal file
|
@ -0,0 +1,39 @@
|
|||
.PHONY: help lint format lint-fix check install dev-install clean test
|
||||
|
||||
help:
|
||||
@echo "Available commands:"
|
||||
@echo " install Install dependencies"
|
||||
@echo " dev-install Install development dependencies"
|
||||
@echo " lint Run linter (check only)"
|
||||
@echo " format Format code"
|
||||
@echo " lint-fix Run linter with auto-fix"
|
||||
@echo " check Run all checks (lint + format check)"
|
||||
@echo " clean Clean cache files"
|
||||
@echo " test Run tests"
|
||||
|
||||
install:
|
||||
uv sync --no-dev
|
||||
|
||||
dev-install:
|
||||
uv sync
|
||||
|
||||
lint:
|
||||
ruff check .
|
||||
|
||||
format:
|
||||
ruff format .
|
||||
|
||||
lint-fix:
|
||||
ruff check --fix --unsafe-fixes .
|
||||
|
||||
check: lint
|
||||
ruff format --check .
|
||||
|
||||
clean:
|
||||
rm -rf .ruff_cache
|
||||
rm -rf __pycache__
|
||||
find . -type d -name "__pycache__" -exec rm -rf {} +
|
||||
find . -type f -name "*.pyc" -delete
|
||||
|
||||
test:
|
||||
@echo "No tests configured yet"
|
Loading…
Add table
Add a link
Reference in a new issue