Skip to content
Merged
Show file tree
Hide file tree
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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,30 @@ nodrift check HEAD~1
Exit code is `0` if nothing changed, `1` if something did — so it drops
straight into CI.

To compare two commits without checking either one out, pass both:

```bash
nodrift check HEAD~1 HEAD
```

If your package lives under `src/`, pass `--subdir src`.

`--verbose` names everything the verdict does *not* cover: functions whose
inputs were too large to record, and functions quarantined as
nondeterministic.

### Recording part of a package

One noisy or vendored module can dominate a recording. Both options take
`fnmatch` patterns against the full `module:Qualname` target and repeat:

```bash
nodrift record -p mypkg --exclude "mypkg.vendored.*"
nodrift record -p mypkg --include "mypkg.core.*"
```

Whatever the patterns skip is printed, not hidden.

## How it works

1. **Record.** A pytest plugin wraps every function in your package and
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "nodrift"
version = "0.1.2"
version = "0.1.3"
description = "Prove a refactor changed nothing — by replaying your tests' real inputs against both versions."
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion src/nodrift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
No model reviews the code. The verdict comes from execution.
"""

__version__ = "0.1.2"
__version__ = "0.1.3"

from .compare import compare
from .fingerprint import fingerprint
Expand Down
Loading