CONTRIBUTING.md
- 1.2 kB
- Markdown
- View raw
1# CONTRIBUTING
3You can set up a local development environment by cloning the repo and installing dependencies:
5```shell
6git clone https://github.com/alexwlchan/chives.git
7cd chives
8python3 -m venv .venv
9source .venv/bin/activate
10pip install -e .If you want to run tests, install the dev dependencies and run the tests:
# Activate the virtualenv and install dev dependencies
source .venv/bin/activate
pip install -r dev_requirements.txt
# Check formatting
ruff check .
ruff format --check .
# Check docstrings
interrogate -vv
# Check types
mypy src tests
# Run tests
coverage run -m pytest tests
coverage reportTo make changes:
- Create a new branch
- Push your changes to GitHub
- Open a pull request
- Fix any issues flagged by GitHub Actions (including tests, code linting, and type checking)
- Merge it!
To create a new version on PyPI:
Update the version in
src/chives/__init__.pyAdd release notes in
CHANGELOG.mdand push a new tag to GitHubDeploy the release using twine:
$ python3 -m build $ python3 -m twine upload dist/* --username=__token__You will need a PyPI API token to publish packages.