Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ clean:
## --- Automated checks --------------------------------------------------------
smoketest:
@echo "πŸš€ Running smoketest..."
@bash -c '\
@/bin/bash -c 'source $(VENV_DIR)/bin/activate && \
./smoketest.py --verbose || { echo "❌ Smoketest failed!"; exit 1; }; \
echo "βœ… Smoketest passed!" \
'
Expand All @@ -443,15 +443,15 @@ test:
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
export DATABASE_URL='sqlite:///:memory:' && \
export TEST_DATABASE_URL='sqlite:///:memory:' && \
uv run pytest -n auto --maxfail=0 -v --ignore=tests/fuzz"
uv run --active pytest -n auto --maxfail=0 -v --ignore=tests/fuzz"

test-profile:
@echo "πŸ§ͺ Running tests with profiling (showing slowest tests)..."
@test -d "$(VENV_DIR)" || $(MAKE) venv
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
export DATABASE_URL='sqlite:///:memory:' && \
export TEST_DATABASE_URL='sqlite:///:memory:' && \
uv run pytest -n auto --durations=20 --durations-min=1.0 --disable-warnings -v --ignore=tests/fuzz"
uv run --active pytest -n auto --durations=20 --durations-min=1.0 --disable-warnings -v --ignore=tests/fuzz"

coverage:
@test -d "$(VENV_DIR)" || $(MAKE) venv
Expand Down Expand Up @@ -1027,7 +1027,9 @@ flake8: ## 🐍 flake8 checks

pylint: uv ## πŸ› pylint checks
@echo "πŸ› pylint $(TARGET) (parallel)..."
uv run pylint -j 0 --fail-on E --fail-under 10 $(TARGET)
@test -d "$(VENV_DIR)" || $(MAKE) venv
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
uv run --active pylint -j 0 --fail-on E --fail-under 10 $(TARGET)"

markdownlint: ## πŸ“– Markdown linting
@# Install markdownlint-cli2 if not present
Expand Down Expand Up @@ -1073,7 +1075,9 @@ pycodestyle: ## πŸ“ Simple PEP-8 checker

pre-commit: uv ## πŸͺ„ Run pre-commit tool
@echo "πŸͺ„ Running pre-commit hooks..."
uv run pre-commit run --config .pre-commit-lite.yaml --all-files --show-diff-on-failure
@test -d "$(VENV_DIR)" || $(MAKE) venv
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
uv run --active pre-commit run --config .pre-commit-lite.yaml --all-files --show-diff-on-failure"

ruff: ## ⚑ Ruff lint + (eventually) format
@echo "⚑ ruff $(TARGET)..." && $(VENV_DIR)/bin/ruff check $(TARGET)
Expand Down
Loading