forked from quarylabs/sqruff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 753 Bytes
/
Makefile
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
.PHONY: help
help: ## Display this help screen
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: python_fmt
python_fmt: ## Format python code
ruff format .
.PHONY: python_lint
python_lint: ## Lint python code
ruff check .
.PHONY: python_test
python_test: ## Run python tests
pytest
.PHONY: python_install
python_install: ## Install python dev dependencies
pip install -e ".[dev]"
.PHONY: python_generate_gha
python_generate_gha: ## Generate GitHub Actions workflow
maturin generate-ci github --manifest-path "crates/cli/Cargo.toml" --output .github/workflows/python-ci.yaml
.PHONY: ci
ci: python_fmt python_lint python_test ## Run all CI checks