Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.89 KB

CONTRIBUTING.md

File metadata and controls

63 lines (46 loc) · 1.89 KB

Contributing

Development setup

  1. Clone the repository:

    git clone https://github.com/wild-edge/wildedge-python.git
    cd wildedge-python
  2. Install dependencies:

    uv sync --group dev
  3. Run tests:

    uv run pytest
  4. Run tests across Python versions:

    uv run tox

Code style

  • Use ruff for linting and formatting:

    uv run ruff check .
    uv run ruff format .

    CI runs both (ruff check and ruff format --check) and fails on any finding. The rule set is in pyproject.toml; prefer fixing over # noqa, and give a reason when a noqa is needed.

  • Follow PEP 8 and PEP 484 (type hints).

Pull requests

  1. Fork the repository and create a feature branch off devel.
  2. Make your changes and ensure tests pass.
  3. Update documentation if needed.
  4. Add a CHANGELOG.md entry under Unreleased for any user-visible or behavioral change.
  5. Submit a pull request targeting devel with a clear description of the changes.

Release process

Releases follow a release/<version> branching flow:

  1. Cut a release/<version> branch from devel.
  2. Bump the version in pyproject.toml and move the Unreleased entries in CHANGELOG.md into a ## <version> - <date> section. The release notes are that section, so the release fails without it.
  3. Open a pull request targeting main. CI will automatically run the full compatibility matrix and post a changelog preview comment.
  4. Once merged, tag the commit as v<version>. The release workflow publishes to PyPI and creates a GitHub release.

Reporting issues

  • Use GitHub Issues for bugs and feature requests.
  • Include steps to reproduce, Python version, OS, and relevant logs.

License

This project is licensed under the Business Source License 1.1. By contributing, you agree that your contributions will be licensed under the same terms.