Contributing to Envars
We welcome contributions from the community! Whether you're fixing a bug, improving documentation, or proposing a new feature, your help is appreciated.
Getting Started
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/your-username/envars.git - Install dependencies for development. We use
uvfor package management.bash pip install uv uv sync - Create a new branch for your changes:
git checkout -b my-feature-branch
Running Tests
To ensure your changes don't break existing functionality, please run the test suite:
uv run pytest
Code Style and Linting
This project uses ruff for linting and formatting. Before committing, please run the linter to ensure your code conforms to the project's style.
uv run ruff check .
uv run ruff format .
We also use pre-commit to automatically run these checks before each commit. You can set it up with:
uv run pre-commit install
Submitting a Pull Request
- Commit your changes with a clear and descriptive commit message.
- Push your branch to your fork on GitHub:
git push origin my-feature-branch - Open a pull request from your branch to the
mainbranch of the original repository. - In the pull request description, please explain the changes you made and why.
Thank you for contributing!