-
Notifications
You must be signed in to change notification settings - Fork 73
docs: create contributing doc #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
moves development and contributing documentation into a standard CONTRIBUTING.md and update current docs to reference it Also includes fixes for incorrect test commands and dir structure Signed-off-by: Alex Bozarth <ajbozart@us.ibm.com>
|
The PR description has been updated. Please fill out the template for your PR to be reviewed. |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
|
Note that the ruff and mypy commands documented currently fail. I've opened #370 to address it in a follow up. |
| If you are going to contribute to Mellea, it is important that you use our | ||
| pre-commit hooks. Using these hooks -- or running our test suite -- | ||
| requires installing `[all]` optional dependencies and also the dev group. | ||
| For detailed instructions on setting up your development environment, installing dependencies, configuring pre-commit hooks, and running tests, please see our **[Contributing Guide](../CONTRIBUTING.md)**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we link directly to the dev environment setup section, assuming it exists?
|
|
||
| - Python 3.10 or higher (3.13+ requires [Rust compiler](https://www.rust-lang.org/tools/install) for outlines) | ||
| - [uv](https://docs.astral.sh/uv/getting-started/installation/) (recommended) or conda/mamba | ||
| - [Ollama](https://ollama.com/) (for local testing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [Ollama](https://ollama.com/) (for local testing) | |
| - [Ollama](https://ollama.com/download) (for local testing) |
|
|
||
| **Docstrings are prompts** - the LLM reads them, so be specific. | ||
|
|
||
| Use **Google-style docstrings**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Use **Google-style docstrings**: | |
| Use **[Google-style docstrings](https://google.github.io/styleguide/pyguide.html#381-docstrings)**: |
?
| ### Branch Naming | ||
|
|
||
| Use descriptive branch names with prefixes: | ||
| - `feat/topic` - New features | ||
| - `fix/issue-id` - Bug fixes | ||
| - `docs/topic` - Documentation updates | ||
| - `test/topic` - Test additions/fixes | ||
| - `refactor/topic` - Code refactoring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Branch Naming | |
| Use descriptive branch names with prefixes: | |
| - `feat/topic` - New features | |
| - `fix/issue-id` - Bug fixes | |
| - `docs/topic` - Documentation updates | |
| - `test/topic` - Test additions/fixes | |
| - `refactor/topic` - Code refactoring |
Since folks will have to fork the repo, it shouldn't matter what they call the branch.
| ### Pull Request Process | ||
|
|
||
| 1. **Create an issue** describing your change (if not already exists) | ||
| 2. **Fork the repository** (if you haven't already) | ||
| 3. **Create a branch** in your fork using appropriate naming | ||
| 4. **Make your changes** following coding standards | ||
| 5. **Add tests** for new functionality | ||
| 6. **Run the test suite** to ensure everything passes | ||
| 7. **Update documentation** as needed | ||
| 8. **Push to your fork** and create a pull request to the main repository | ||
| 9. **Follow the automated PR workflow** instructions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section is very similar to the contribution pathway 1 above (~L17-L22). Do we need it both places?
Misc PR
Type of PR
Description
Moves development and contributing documentation into a standard
CONTRIBUTING.mddoc and updates current docs to reference it.Also includes fixes for incorrect test commands and dir structure found while creating the doc
Testing