-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
33 lines (26 loc) · 818 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
27
28
29
30
31
32
33
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.PHONY: help
help: ## Print this help message
@echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)"
.PHONY: init
init: ## Locally install all dev dependencies
poetry install --all-extras
.PHONY: clean
clean: ## Clean project
rm -rf .ruff_cache/ .mypy_cache/
.PHONY: check-format
check-format: ## Check code formatting
poetry run black --check .
.PHONY: format
format: ## Fix code formatting
poetry run black .
.PHONY: typecheck
typecheck: ## Typecheck all source files
poetry run mypy -p justetf_scraping
.PHONY: lint
lint: ## Lint all source files
poetry run ruff justetf_scraping