Contributing to GDAS CMAQ Preprocessor
We love your input! We want to make contributing to GDAS CMAQ Preprocessor as easy and transparent as possible, whether it’s:
Reporting a bug
Discussing the current state of the code
Submitting a fix
Proposing new features
Becoming a maintainer
Development Process
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
Fork the repo and create your branch from
mainIf you’ve added code that should be tested, add tests
If you’ve changed APIs, update the documentation
Ensure the test suite passes
Make sure your code meets our coding standards
Issue that pull request!
Fork, then clone the repo:
git clone git@github.com:your-username/gdas-cmaqprep.git
Pull Request Process
Update the README.md with details of changes to the interface, if applicable
Update the documentation with any new dependencies, configuration options, or features
The PR will be merged once you have the sign-off of at least one maintainer
The PR should work for Python 3.8+.
Any contributions you make will be under the BSD 3-Clause License
In short, when you submit code changes, your submissions are understood to be under the same BSD 3-Clause License that covers the project. Feel free to contact the maintainers if that’s a concern.
Report bugs using GitHub’s issue tracker
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
Write bug reports with detail, background, and sample code
Great Bug Reports tend to have:
A quick summary and/or background
Steps to reproduce - Be specific! - Give sample code if you can
What you expected would happen
What actually happens
Notes (possibly including why you think this might be happening, or things you tried that didn’t work)
Coding Style
Use 4 spaces for indentation
Follow PEP 8 style guidelines
Use descriptive variable names
Add comments for complex logic
Keep functions focused and concise
Use type hints
Write docstrings in Google style
Testing
Before submitting a pull request, please ensure:
Your code includes unit tests
All existing tests pass
Your code is well-documented
You’ve added docstrings to new functions
To run tests locally:
python -m pytest tests/
Documentation
We use Sphinx for documentation. Please update the documentation when you make changes:
Update docstrings for any modified functions
Add new .rst files for new modules
Update the index.rst if needed
Build and check the documentation locally:
cd docs make html
Use Google style docstrings
Keep documentation up to date
Add examples where appropriate
Include doctest examples when possible
License
By contributing, you agree that your contributions will be licensed under the BSD 3-Clause License.
References
Questions?
Contact the maintainers if you have any questions about contributing.
Feel free to open an issue with questions.
Thank you for your interest in improving GDAS CMAQ Preprocessor!