Skip to content

Commit

Permalink
add note on using Nix shell with Nox and pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Mar 14, 2024
1 parent c308655 commit 70898f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ This project is configured to use Nix for a shell/environment with dependencies,
1. Exit Nix shell: `Ctrl-d`
1. Restart Nix shell: `shell.nix`

### Testing
From the Nix shell, run `nox --list` to see a list of available commands, notably to run tests against different versions of Python, to reformat code to be style-compliant, and to run the linter.

NB: To pass arguments through `nox` to `pytest`, separate the argument strings with `--`, e.g.:
```shell
nox -s tests-3.12 -- -vv
```
to run the tests with additional verbosity (e.g., `pytest -vv`)

0 comments on commit 70898f3

Please sign in to comment.