Skip to content

Latest commit

 

History

History
96 lines (58 loc) · 2.5 KB

CONTRIBUTING.md

File metadata and controls

96 lines (58 loc) · 2.5 KB

Contributing to Htmst

We're excited to have you contribute. Before you get started, please take a moment to review this guide to understand how to contribute effectively.

Prerequisites

Before you begin contributing to Htmst, make sure you have the following installed.

Setting up the project

  1. Fork the repository

  2. Clone the repository

  3. Navigate to the project folder

    cd htmst
  4. Sync the project dependencies

    uv sync --all-groups
  5. Install pre-commit hooks

    pre-commit install
    pre-commit install-hooks

Development workflow

  1. Create a branch

    git checkout -b feature/my-feature
  2. Write code

    Write your code, following the project's coding standards.

  3. Test your changes

    Run the test suite to ensure your changes are working as expected.

    uv run pytest

    Or run the test suite with watch mode to automatically re-run tests when you make changes.

    uv run ptw .
  4. Commit changes

    Use meaningful commit messages. If your change fixes a specific issue, reference it in the commit message

    git commit -m "Your commit message"
  5. Push changes

    Push your changes to your forked repository

    git push origin feature/my-feature

Submitting a pull request

  1. Open a pull request

    Once your changes are ready, open a pull request on the main repository. Provide a clear description of your changes and reference any related issues.

  2. Review and iterate

    Collaborate with maintainers and other contributors to address any feedback on your pull request. Make necessary changes and push them to the same branch.

  3. Get your pull request approved

    Once your pull request is approved, it will be merged into the main branch. Congratulations on your contribution!

Thank you for contributing! 🎉 We appreciate your help in making this project better.