Skip to content

Commit

Permalink
add CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdavham committed Oct 26, 2024
1 parent ea6a2c7 commit dba3b4a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
53 changes: 53 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Contributing to leitner-box

Welcome to leitner-box!

In this short guide, you will get a quick overview of how you can contribute to the leitner-box project.

## Reporting issues

If you encounter an issue with leitner-box and would like to report it, you'll first want to make sure you're using the latest version of leitner-box.

The latest version of leitner-box can be found under [releases](https://github.com/joshdavham/leitner-box/releases) and you can verify the version of your current installation with the following command:
```
pip show leitner-box
```

Once you've confirmed your version, please report your issue in the [issues tab](https://github.com/joshdavham/leitner-box/issues).

## Contributing code

### Local setup

**Step 1**: Start by forking this repo, then cloning it to your local machine.

**Step 2**: Create a new local branch where you will implement your changes.

### Develop

Install the `leitner-box` python package locally in editable mode from the src with
```
pip install -e .
```

Now you're ready to make changes to `src/leitner_box` and see your changes reflected immediately!

### Test

leitner-box uses [pytest](https://docs.pytest.org) to run its tests. In order for your contribution to be accepted, your code must pass the tests.

You can install `pytest` with
```
pip install pytest
```

Run the tests with:
```
pytest
```

Additionally, you're encouraged to contribute your own tests to [tests/test_leitner_box.py](tests/test_leitner_box.py) to help make leitner_box more reliable!

### Submit a pull request

To submit a pull request, commit your local changes to your branch then push the branch to your fork. You can now open a pull request.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ This python package is currently unstable and adheres to the following versionin
- **Minor** version will increase when a backward-incompatible change is introduced.
- **Patch** version will increase when a bug is fixed or a new feature is added.

Once this package is considered stable, the **Major** version will be bumped to 1.0.0 and will follow [semver](https://semver.org/).
Once this package is considered stable, the **Major** version will be bumped to 1.0.0 and will follow [semver](https://semver.org/).

## Contribute

Checkout [CONTRIBUTING](https://github.com/joshdavham/leitner-box/blob/main/CONTRIBUTING.md) to help improve leitner-box!

0 comments on commit dba3b4a

Please sign in to comment.