|
1 | | -# Contributing to 🧪 MetaboT 🍵 📝 |
| 1 | +# Contributing |
2 | 2 |
|
3 | | -We appreciate your interest in contributing to 🧪 MetaboT 🍵! Below are the guidelines to help you get started. |
| 3 | +Thank you for helping improve MetaboT. Contributions are welcome across code, prompts, evaluation, examples, and documentation. |
4 | 4 |
|
5 | | ---- |
| 5 | +## Development Workflow |
6 | 6 |
|
7 | | -## How to Contribute 🤝 |
| 7 | +1. Fork the repository. |
| 8 | +2. Clone your fork locally. |
| 9 | +3. Create a feature branch from `main`. |
| 10 | +4. Make and test your changes. |
| 11 | +5. Open a pull request back to `main`. |
8 | 12 |
|
9 | | -### Fork the Repository |
10 | | - |
11 | | -Fork the [MetaboT repository](https://github.com/holobiomicslab/MetaboT) to your GitHub account. |
12 | | - |
13 | | -Clone your forked repository to your local machine: |
14 | | - |
15 | | -- Fork the repository on GitHub. |
16 | | -- Clone your fork and check out a new branch from the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev). |
| 13 | +Example: |
17 | 14 |
|
18 | 15 | ```bash |
19 | 16 | git clone https://github.com/<your-username>/MetaboT.git |
20 | 17 | cd MetaboT |
21 | | -git checkout -b dev |
| 18 | +git checkout -b my-feature |
22 | 19 | ``` |
23 | 20 |
|
24 | | -### Create a Branch |
25 | | - |
26 | | -Create a new branch for your feature or bugfix. For example, if you're working on a new feature, you might create a branch off the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev). |
27 | | - |
28 | | -#### Development Process |
29 | | - |
30 | | -**Making Changes** |
31 | | - |
32 | | -- Make your changes ensuring all references to files (e.g., configuration files like [app/config/params.ini](https://github.com/holobiomicslab/MetaboT/blob/main/app/config/params.ini)) are updated as needed. |
33 | | -- Commit your changes with clear, meaningful commit messages. |
34 | | -- Push your feature branch and open a pull request against the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev). |
35 | | - |
36 | | - |
37 | | -### Code Guidelines |
38 | | - |
39 | | -- Follow the existing code style (Google DocString). |
40 | | -- Write clear and concise commit messages. |
41 | | -- Include comments and docstrings where necessary. |
42 | | - |
43 | | ---- |
| 21 | +## What We Appreciate Most |
44 | 22 |
|
45 | | -#### Code Standards |
| 23 | +- bug fixes and reliability improvements |
| 24 | +- clearer prompts and better agent coordination |
| 25 | +- documentation improvements |
| 26 | +- new examples and benchmarks |
| 27 | +- portability improvements for new knowledge graphs |
46 | 28 |
|
47 | | -- Follow **PEP8** for Python code. See the [Python Style Guide (PEP 8)](https://www.python.org/dev/peps/pep-0008/). |
48 | | -- Include detailed documentation and inline comments where applicable. |
| 29 | +## Code Style |
49 | 30 |
|
50 | | ---- |
| 31 | +- Follow standard Python style and keep changes readable. |
| 32 | +- Add comments where they clarify non-obvious logic. |
| 33 | +- Prefer small, focused pull requests over large mixed changes. |
| 34 | +- Update docs when behavior, configuration, or setup changes. |
51 | 35 |
|
52 | | -#### Tests |
| 36 | +## Tests and Validation |
53 | 37 |
|
54 | | -You can find our test suite in the [app/core/tests/](https://github.com/holobiomicslab/MetaboT/tree/main/app/core/tests) directory. |
55 | | - |
56 | | -#### Documentation |
57 | | - |
58 | | -Update the documentation to reflect your changes. This includes: |
59 | | - |
60 | | -- Docstrings in the code. |
61 | | -- Relevant Markdown files in the [docs/ directory](https://github.com/holobiomicslab/MetaboT/tree/main/docs), including: |
62 | | - |
63 | | - - [API Reference](https://github.com/holobiomicslab/MetaboT/tree/main/docs/api-reference) |
64 | | - - [User Guide](https://github.com/holobiomicslab/MetaboT/tree/main/docs/user-guide) |
65 | | - - [Examples](https://github.com/holobiomicslab/MetaboT/tree/main/docs/examples) |
66 | | - - [Getting Started](https://github.com/holobiomicslab/MetaboT/tree/main/docs/getting-started) |
67 | | - |
68 | | ---- |
69 | | - |
70 | | -## Submitting Your Changes 📤 |
71 | | - |
72 | | -### Commit Your Changes |
73 | | - |
74 | | -Commit your changes with a descriptive message: |
75 | | - |
76 | | -```bash |
77 | | -git add . |
78 | | -git commit -m "Add new feature X" |
79 | | -``` |
| 38 | +Relevant code and tests live under: |
80 | 39 |
|
81 | | -### Push to Your Fork |
| 40 | +- `app/core/` |
| 41 | +- `app/tests/` |
| 42 | +- `docs/` |
82 | 43 |
|
83 | | -Push your changes to your forked repository: |
| 44 | +Before opening a pull request, run the checks that make sense for your change. At minimum, a lightweight smoke test is helpful: |
84 | 45 |
|
85 | 46 | ```bash |
86 | | -git push origin my-feature-branch |
| 47 | +python -m app.core.main -q 1 |
87 | 48 | ``` |
88 | 49 |
|
89 | | -### Open a Pull Request |
| 50 | +If you change prompts, routing, or SPARQL behavior, include a short note in the pull request explaining what you validated. |
90 | 51 |
|
91 | | -Open a pull request from your branch to the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev) of the original repository. Provide a clear description of your changes and any relevant information. |
| 52 | +## Documentation Changes |
92 | 53 |
|
93 | | ---- |
| 54 | +Documentation is part of the product. If you change: |
94 | 55 |
|
95 | | -### Code Review |
| 56 | +- setup steps |
| 57 | +- environment variables |
| 58 | +- CLI behavior |
| 59 | +- agent roles |
| 60 | +- endpoint assumptions |
96 | 61 |
|
97 | | -Your pull request to the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev) will be reviewed by an AI-agent and then by the maintainers. They may request changes or provide feedback. Please be responsive and address any comments or suggestions. |
| 62 | +please update the corresponding pages in `docs/` and, when relevant, `README.md`. |
98 | 63 |
|
99 | | ---- |
| 64 | +## Pull Requests |
100 | 65 |
|
101 | | -## Community 👥 |
| 66 | +When you open a pull request: |
102 | 67 |
|
103 | | -- You are welcome to use, reuse, and enrich 🧪 MetaboT 🍵. |
104 | | -- Be respectful and considerate in your interactions. |
105 | | -- Help others and share your knowledge. |
106 | | -- Check our [examples](https://github.com/holobiomicslab/MetaboT/tree/main/docs/examples) for guidance. |
| 68 | +- explain the user-facing motivation |
| 69 | +- summarize the main changes |
| 70 | +- mention how you tested them |
| 71 | +- link related issues or discussions when available |
107 | 72 |
|
108 | | ---- |
| 73 | +Clear PR descriptions make review much faster. |
109 | 74 |
|
110 | | -## Additional Resource 📚 |
| 75 | +## Community |
111 | 76 |
|
112 | | -- [Writing Good Commit Messages](https://chris.beams.io/posts/git-commit/) |
| 77 | +Please be respectful, generous, and constructive in discussion and review. MetaboT sits at the intersection of AI, knowledge graphs, and metabolomics, so clear collaboration matters a lot. |
113 | 78 |
|
114 | | ---- |
| 79 | +## Useful References |
115 | 80 |
|
116 | | -Thank you for contributing to 🧪 MetaboT 🍵! Your efforts help make this project better for everyone. |
| 81 | +- [Documentation Home](index.md) |
| 82 | +- [Installation](getting-started/installation.md) |
| 83 | +- [Quick Start](getting-started/quickstart.md) |
| 84 | +- [Examples](examples/basic-usage.md) |
0 commit comments