Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jmrplens/phonometry. Standards-conformant acoustics library for Python: measurement and metrology, docs.jmrp.io/phonometry
Something went wrong. Try again.
phonometry Makefile
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758# Virtual environment detectionVENV = .venvBIN = $(VENV)/bin
# If venv doesn't exist, use system binariesifeq (,$(wildcard $(VENV))) PYTHON = python3 RUFF = ruff MYPY = mypy BANDIT = bandit PNPM = pnpmelse PYTHON = $(BIN)/python3 RUFF = $(BIN)/ruff MYPY = $(BIN)/mypy BANDIT = $(BIN)/bandit PNPM = pnpmendif
install: $(PYTHON) -m pip install --upgrade pip $(PYTHON) -m pip install -r requirements.txt $(PYTHON) -m pip install -r requirements-dev.txt $(PYTHON) -m pip install -e .
lint: $(RUFF) check . $(MYPY) src
format: $(RUFF) check --fix . $(RUFF) format .
security: $(BANDIT) -r src
snyk: @echo "Running Snyk..." @if [ -f .env ]; then export $$(cat .env | xargs) && $(PNPM) exec snyk test --all-projects; else $(PNPM) exec snyk test --all-projects; fi
sonar: @echo "Running SonarQube Scanner..." @if [ -f .env ]; then export $$(cat .env | xargs) && $(PNPM) exec sonar-scanner; else $(PNPM) exec sonar-scanner; fi
graphs: $(PYTHON) generate_graphs.py $(PYTHON) generate_diagrams.py
llms: $(PYTHON) scripts/gen_llms.py
test: $(PYTHON) -m pytest tests/
coverage: $(PYTHON) -m pytest --cov=src/phonometry --cov-report=term-missing tests/
check: lint security test