forked from ONSdigital/ons-python-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 893 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (29 loc) · 893 Bytes
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
.DEFAULT_GOAL := all
.PHONY: all
all: ## Show the available make targets.
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@fgrep "##" Makefile | fgrep -v fgrep
.PHONY: format
format: ## Format the code using Ruff.
poetry run ruff format .
poetry run ruff check . --fix
.PHONY: lint
lint: ## Run Python linter using Ruff.
poetry run ruff check .
.PHONY: install
install: ## Install the dependencies excluding dev.
poetry install --only main
.PHONY: install-dev
install-dev: ## Install the dependencies including dev.
poetry install
.PHONY: update-template-packages
update-template-packages: ## Update the project using the initial copier template.
cd scripts/package_manager_helper && ./update_template_packages.sh && cd ../..
.PHONY: clean
clean: ## Clean the temporary files.
rm -rf .ruff_cache
.PHONY: test
test: ## Run the tests.
echo "Not implemented yet"