Files
ephemere/Makefile
T
naomi 8826c1c1a5
CI / dependency-pin-check-typescript (push) Successful in 4s
CI / dependency-pin-check-python (push) Successful in 4s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 53s
CI / python (push) Successful in 9m25s
CI / typescript (push) Successful in 9m43s
feat: ability to delete s3 objects, make endpoint an env (#2)
### Explanation

_No response_

### Issue

_No response_

### Attestations

- [ ] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [ ] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [ ] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [ ] I have pinned the dependencies to a specific patch version.

### Style

- [ ] I have run the linter and resolved any errors.
- [ ] My pull request uses an appropriate title, matching the conventional commit standards.
- [ ] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [ ] All new and existing tests pass locally with my changes.
- [ ] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

_No response_

Reviewed-on: #2
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2026-02-02 10:58:45 -08:00

78 lines
2.1 KiB
Makefile

.PHONY: help install install-ts install-py build lint lint-ts lint-py format format-py format-check format-check-py test clean run
# Default target - show help
help:
@echo "Available commands:"
@echo " make install - Install all dependencies (TypeScript and Python)"
@echo " make install-ts - Install TypeScript dependencies only"
@echo " make install-py - Install Python dependencies only"
@echo " make build - Build TypeScript (type check)"
@echo " make lint - Run all linters (TypeScript and Python)"
@echo " make lint-ts - Run TypeScript linter only"
@echo " make lint-py - Run Python linter only"
@echo " make format - Format Python code"
@echo " make format-check - Check Python formatting without modifying"
@echo " make test - Run tests"
@echo " make clean - Clean build artifacts and caches"
@echo ""
@echo "Running scripts:"
@echo " make run - Interactive script runner (select language, category, script)"
# Install all dependencies
install: install-ts install-py
# TypeScript dependencies
install-ts:
cd typescript && pnpm install --frozen-lockfile
# Python dependencies
install-py:
cd python && uv venv
cd python && uv pip install -r requirements.txt
# Build TypeScript
build:
cd typescript && pnpm exec tsc --noEmit
# Run all linters
lint: lint-ts lint-py
# TypeScript linting
lint-ts:
cd typescript && pnpm exec eslint src --max-warnings 0
# Python linting
lint-py:
cd python && uv run ruff check .
format-ts:
cd typescript && pnpm exec eslint src --fix
# Format Python code
format: format-py
format-py:
cd python && uv run ruff format .
# Check formatting without modifying
format-check: format-check-py
format-check-py:
cd python && uv run ruff format --check .
# Run tests
test:
@echo "No tests configured yet"
@exit 0
# Clean build artifacts and caches
clean:
rm -rf typescript/node_modules
rm -rf python/.venv
rm -rf python/.ruff_cache
find python -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find python -type f -name "*.pyc" -delete 2>/dev/null || true
# Interactive script runner
run:
@./run.sh