-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (32 loc) · 837 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
34
35
36
37
38
39
# Makefile
# List of directories and files to format and lint
TARGETS = fli/ scripts/ tests/
# Build the docs
docs:
poetry run mkdocs build
# Format code using ruff
format:
poetry run ruff format $(TARGETS)
# Lint code using ruff
lint:
poetry run ruff check $(TARGETS)
# Lint and fix code using ruff
lint-fix:
poetry run ruff check --fix $(TARGETS)
# Run tests
test:
poetry run pytest -vv
test-fuzz:
poetry run pytest -vv --fuzz
test-all:
poetry run pytest -vv --all
# Display help message by default
.DEFAULT_GOAL := help
help:
@echo "Available commands:"
@echo " make format - Format code using ruff"
@echo " make lint - Lint code using ruff"
@echo " make lint-fix - Lint and fix code using ruff"
@echo " make test - Run tests"
# Declare the targets as phony
.PHONY: format lint check help