This repository was archived by the owner on Jan 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
58 lines (46 loc) · 1.36 KB
/
makefile
File metadata and controls
58 lines (46 loc) · 1.36 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.DEFAULT_GOAL := help
.PHONY: bootstrap
bootstrap: ## Bootstrap local repository checkout
@echo Set git commit message template…
@git config commit.template .gitmessage
@echo
@echo Installing Python dependencies into Poetry managed virtualenv
ifeq (, $(shell which poetry))
$(error "No `poetry` in $$PATH, please install poetry https://python-poetry.org")
endif
@poetry install
@poetry env info
@echo
@echo Installing pre-commit hook
ifeq (, $(shell which pre-commit))
$(error "No `pre-commit` in $$PATH, please install pre-commit https://pre-commit.com")
endif
@pre-commit install
@echo
@echo Checking nox
ifeq (, $(shell which nox))
$(error "No `nox` in $$PATH, please install it together with nox-poetry")
endif
@echo
@echo Checking Python versions
ifeq (, $(shell which python3.10))
@echo "WARNING: No Python 3.10 found"
else
@echo "INFO: Python 3.10 found"
endif
ifeq (, $(shell which python3.11))
@echo "WARNING: No Python 3.11 found"
else
@echo "INFO: Python 3.11 found"
endif
PHONY: test
test: ## Run tests with nox (multiple Python versions)
nox --session=tests
PHONY: lint
lint: ## Run linting with nox
nox --session=lint
.PHONY: help
help:
@echo "Welcome to the SatelliteVu Platform Python SDK!"
@echo
@grep -E '^[\.a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'