Contributing
We welcome contributions to OpenPUC Scrapers! Follow these steps to set up your development environment and submit contributions.
Fork and Clone the Repository First, fork the repository on GitHub and then clone your fork:
git clone https://github.com/your-username/scrapers.git cd scrapers
Set Up the Environment Ensure you have Poetry installed:
curl -sSL https://install.python-poetry.org | python3 -
Then, install dependencies (Python 3.11 for development is recommended):
poetry env use python3.11 poetry install
Install Pre-Commit Hooks Run the following to install pre-commit hooks:
pre-commit install
To test all hooks manually:
pre-commit run --all-files
Run Tests and Linting Before submitting changes, ensure all tests pass and code follows standards:
nox -s tests nox -s mypy nox -s lint
or just run nox to run all checks.
Create a Feature Branch Follow a descriptive naming convention:
git checkout -b feature/add-new-scraper
Commit and Push Format your commit messages properly:
git commit -m "Add scraper for [state PUC]" git push origin feature/add-new-scraper
Submit a Pull Request - Open a Pull Request (PR) on GitHub. - Link any relevant issues. - Wait for a code review and address any feedback.
Join the Discussion If you have ideas or issues, start a discussion in the Issues tab!
Thanks for contributing! 🚀