Skip to content

Commit

Permalink
doc: add CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Apr 15, 2024
1 parent cf2c532 commit 0254dd4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
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

0 comments on commit 0254dd4

Please sign in to comment.