-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathMakefile
31 lines (25 loc) · 883 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
PYTHON = python3
CLEANUP_DIRS = ~/.cache/curator __pycache__ .pytest_cache .tox .coverage .nox *.egg-info dist build
lint:
@echo "Running Linter (Ruff)..."
isort tests/ src/ examples
poetry run ruff format src tests examples
test:
@echo "Running tests with pytest..."
poetry run pytest tests/ --maxfail=1 --disable-warnings -q
test_integration:
@read integration_name && \
@echo "Running integration test..."
poetry run pytest tests/integrations/$$integration_name --maxfail=1 --disable-warnings -q
check:
@echo "Checking Linter (Ruff)..."
poetry run ruff check src/ tests/ examples --output-format=github
poetry run ruff format src/ tests/ examples --check
clean:
@echo "Cleaning up build artifacts and cache..."
rm -rf $(CLEANUP_DIRS)
install:
@echo "Installing dependencies..."
poetry install --with dev
poetry run pre-commit install
all: lint test clean