Metadata-Version: 2.4
Name: verifaied
Version: 0.0.1
Summary: Upload local pytest coverage to verifAIed for instant feedback
Project-URL: Homepage, https://pypi.org/project/verifaied/
Author: Kyle Richards
License: MIT
Keywords: ai,coverage,llm,pytest,testing
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: rich>=13.7.0
Requires-Dist: typer>=0.12.0
Description-Content-Type: text/markdown

# verifaied

CLI for uploading local pytest coverage to verifAIed so an LLM (or you) can see what's untested without waiting for CI.

## Install

```bash
uv tool install verifaied        # or
pipx install verifaied
```

## Configure

Set the API token (mint one from the verifAIed app) and, for self-hosted
or local backends, the API URL:

```bash
export VERIFAIED_API_TOKEN=vr_live_...
export VERIFAIED_API_URL=http://localhost:8000   # default
```

## Use

After a pytest run that emits `coverage.json`:

```bash
pytest --cov --cov-report=json --junitxml=junit.xml
verifaied upload --repo <repository-id>
```

The CLI reads `coverage.json`, pulls the source for every file it
references from your working tree, and posts everything to
`/repositories/<id>/local-coverage`. The response prints a summary of
untested / partial / failing functions so you (or your LLM) can fix
them on the next iteration.

### Flags

- `--repo / -r <UUID>` — repository id (required)
- `--branch / -b <name>` — branch to attach the upload to (default:
  `git branch --show-current`, then `local`)
- `--coverage <path>` — path to coverage.json (default: `./coverage.json`)
- `--junit <path>` — optional JUnit XML for failing-test detail
- `--commit-sha <sha>` — commit sha for display (default: `git rev-parse HEAD`)
- `--root <path>` — root the coverage paths are relative to (default: cwd)
- `--api-url <url>` — backend base URL (overrides `VERIFAIED_API_URL`)
- `--token <token>` — API token (overrides `VERIFAIED_API_TOKEN`)
