-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf2c532
commit 0254dd4
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Contributing | ||
|
||
This document outlines a few tips for contributing to packse. | ||
|
||
## Running tests | ||
|
||
packse uses `pytest`: | ||
|
||
``` | ||
poetry run pytest | ||
``` | ||
|
||
## Updating snapshots | ||
|
||
If you make changes to the code that results in a snapshot test failing, then | ||
you should examine whether the changes are correct. If so, you can re-run the | ||
tests with the `--snapshot-update` flag: | ||
|
||
``` | ||
poetry run pytest --snapshot-update | ||
``` | ||
|
||
And then commit the results. In at least some cases, this may commit a snapshot | ||
that is inconsistent with what CI expects. In this case, you'll want to | ||
manually back out the change. See [this comment][index-incorrect-snapshot] for | ||
an example. | ||
|
||
[index-incorrect-snapshot]: https://github.com/astral-sh/packse/pull/175#issuecomment-2056964089 |