Update Makefile
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
45a8f60cd2
commit
092ebd0ee0
1 changed files with 11 additions and 6 deletions
17
Makefile
17
Makefile
|
|
@ -155,13 +155,18 @@ test-cov: dev-setup
|
|||
|
||||
|
||||
# Format and lint code
|
||||
.PHONY: format lint
|
||||
format lint: dev-setup
|
||||
@echo "🎨 Formatting and linting code..."
|
||||
venv/bin/black . || echo "⚠️ black formatting failed"
|
||||
venv/bin/isort . || echo "⚠️ isort import sorting failed"
|
||||
venv/bin/flake8 . || echo "⚠️ Linting issues found"
|
||||
.PHONY: format
|
||||
format: dev-setup
|
||||
@echo "🎨 Formatting code..."
|
||||
venv/bin/black .
|
||||
venv/bin/isort .
|
||||
|
||||
.PHONY: lint
|
||||
lint: dev-setup
|
||||
@echo "🔍 Linting code..."
|
||||
venv/bin/black --check .
|
||||
venv/bin/isort --check-only .
|
||||
venv/bin/flake8 .
|
||||
# Install development dependencies
|
||||
.PHONY: dev-setup
|
||||
dev-setup: venv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue