set quiet

format:
    uvx --quiet ruff format --quiet

ruff:
    uvx --quiet ruff check --quiet --fix
    uvx --quiet ruff check --quiet --select I --fix

mypy:
    ./.venv/bin/mypy speakeasy

lint: format ruff mypy

# regenerate the API signature databases from the deps/win32json and deps/phnt submodules
gen-signatures:
    git submodule update --init deps/win32json deps/phnt
    ./.venv/bin/python scripts/gen_win32_signatures.py --stats
    ./.venv/bin/python scripts/gen_phnt_signatures.py --stats

test:
    ./.venv/bin/pytest -x -q --no-header tests/

test-pma:
    ./.venv/bin/pytest -x -q --no-header tests/test_pma_samples.py
