Skip to content

Commit 9d0fe35

Browse files
Merge pull request #21 from saezlab/feat/community-guidelines
Feat/community guidelines
2 parents 97e9116 + 7ee92f4 commit 9d0fe35

16 files changed

Lines changed: 683 additions & 6 deletions
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
name: 🪳 Bug Report
2+
description: Create a report to help us reproduce and fix the bug
3+
4+
title: '[BUG]: '
5+
labels:
6+
- bug
7+
- triage
8+
9+
body:
10+
- type: markdown
11+
attributes:
12+
value: >
13+
**Before submitting a bug, please make sure the issue hasn't been already addressed by [searching through](https://github.com/saezlab/ontograph/issues).**
14+
Please write your bug report in English to ensure it can be understood and addressed by the development team.
15+
16+
#---------------- Installed From --------------
17+
- type: dropdown
18+
id: source
19+
attributes:
20+
label: Source
21+
description: OntoGraph has been installed from
22+
options:
23+
- conda
24+
- pip
25+
- uv
26+
- poetry
27+
- other (specify in text)
28+
validations:
29+
required: true
30+
31+
- type: input
32+
id: source-other
33+
attributes:
34+
label: other source
35+
placeholder: e.g., from source
36+
37+
#-------------- Python version --------------
38+
- type: input
39+
id: Python
40+
attributes:
41+
label: Python version
42+
placeholder: e.g., 3.10
43+
validations:
44+
required: true
45+
46+
#-------------- OntoGraph version --------------
47+
- type: input
48+
id: OntoGraph-version
49+
attributes:
50+
label: OntoGraph version
51+
placeholder: e.g., OntoGraph v0.0.1
52+
validations:
53+
required: true
54+
55+
#-------------- OS Platform and distribution --------------
56+
- type: input
57+
id: OS
58+
attributes:
59+
label: OS platform and distribution
60+
placeholder: e.g., Linux Ubuntu 16.04
61+
62+
#-------------- Describe the Bug --------------
63+
- type: textarea
64+
attributes:
65+
label: Describe the bug
66+
description: |
67+
Please provide a clear and concise description of the bug.
68+
69+
If applicable, include a minimal example that allows us to reproduce the error by running the code.
70+
It's crucial that the snippet is as short and focused as possible, so please remove any unnecessary code
71+
to help us debug efficiently. We will copy and paste your code, and we expect to see the same result as you did.
72+
Avoid using external data and make sure to include all relevant imports, etc. For example:
73+
74+
```python
75+
# All necessary imports at the beginning
76+
from ontograph import ClientOntology
77+
78+
# A succinct reproducing example trimmed down to the essential parts:
79+
go_client = ClientOntology()
80+
81+
go_client.load() # Note: the bug is here!
82+
```
83+
84+
If the code is too lengthy (though we hope it's not), feel free to place it in a public gist and share the link in the issue: https://gist.github.com.
85+
86+
Instead of providing the expected results, please paste or describe the actual results you observe. If you encounter an error, include the error message along with the full traceback. It's helpful to wrap error messages in ```` ```triple quotes blocks``` ````.
87+
placeholder: |
88+
A clear and concise description of what the bug is.
89+
90+
```python
91+
# Sample code to reproduce the problem
92+
```
93+
94+
```
95+
The error message you got, with the full traceback.
96+
```
97+
validations:
98+
required: true
99+
100+
#-------------- Relevant LOG Output --------------
101+
- type: textarea
102+
id: logs
103+
attributes:
104+
label: Relevant LOG output
105+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
106+
render: shell
107+
108+
#-------------- Code of Conduct --------------
109+
- type: checkboxes
110+
id: terms
111+
attributes:
112+
label: Code of Conduct
113+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/saezlab/ontograph/blob/main/CODE_OF_CONDUCT.md).
114+
options:
115+
- label: I agree to follow this project's Code of Conduct
116+
required: true
117+
118+
- type: markdown
119+
attributes:
120+
value: >
121+
Thank you for your contribution! 🎉 – Saezlab Organization - OmniPath team
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: ✨ Feature Request
2+
description: Submit a proposal/request for a new OntoGraph feature
3+
4+
title: '[FEAT]: '
5+
labels:
6+
- feature
7+
projects: [ontograph/1]
8+
9+
body:
10+
- type: markdown
11+
attributes:
12+
value: >
13+
**Note:** Please write your bug report in English to ensure it can be understood and addressed by the development team.
14+
15+
#-------------- Feature type --------------
16+
- type: dropdown
17+
id: feature-type
18+
attributes:
19+
label: Feature Type
20+
description: Please select what type of feature request you would like to propose.
21+
options:
22+
- Add new functionality to OntoGraph
23+
- Change existing functionality in OntoGraph
24+
- Remove existing functionality in OntoGraph
25+
multiple: false
26+
validations:
27+
required: true
28+
29+
#-------------- Feature description and motivation --------------
30+
- type: textarea
31+
attributes:
32+
label: 🚀 The feature and motivation
33+
description: >
34+
Provide a clear and concise summary of the proposed feature, including the motivation behind it.
35+
If your request addresses a specific problem, describe it (e.g., "I'm working on X and need Y to be achievable").
36+
If this is connected to an existing GitHub issue, please include a link.
37+
placeholder: |
38+
**Feature description**
39+
As a user, I would like the ability to import a csv file from SwissLipids and create an ontology with this data.
40+
41+
**Motivation**
42+
Enabling users to import CSV files from SwissLipids and automatically generate an ontology streamlines the integration
43+
of curated lipid data into the platform. This functionality reduces manual preprocessing, ensures data consistency,
44+
and accelerates research workflows, while supporting reproducibility and adherence to community standards.
45+
46+
validations:
47+
required: true
48+
49+
#-------------- Additional context --------------
50+
- type: textarea
51+
attributes:
52+
label: Additional context
53+
description: >
54+
Add any other context or screenshots about the feature request.
55+
56+
#-------------- Code of Conduct --------------
57+
- type: checkboxes
58+
id: terms
59+
attributes:
60+
label: Code of Conduct
61+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/saezlab/ontograph/blob/main/CODE_OF_CONDUCT.md).
62+
options:
63+
- label: I agree to follow this project's Code of Conduct
64+
required: true
65+
66+
- type: markdown
67+
attributes:
68+
value: >
69+
Thank you for your contribution! 🎉 – Saezlab Organization - OmniPath team
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: 📔 Documentation Improvement
2+
description: Report wrong or missing documentation
3+
4+
title: '[DOC]: '
5+
labels:
6+
- docs
7+
- triage
8+
projects: [ontograph/1]
9+
10+
body:
11+
#---------------- Location of the documentation --------------
12+
- type: textarea
13+
id: location
14+
attributes:
15+
label: Location of the documentation
16+
description: >
17+
Please provide the location of the documentation, e.g. "catalog.load_catalog()" or the
18+
URL of the documentation, e.g.
19+
"https://saezlab.github.io/ontograph/reference/source/ontograph/client-catalog/"
20+
placeholder: https://saezlab.github.io/ontograph/reference/source/ontograph/client-catalog/
21+
validations:
22+
required: true
23+
24+
#---------------- Problem Description --------------
25+
- type: textarea
26+
id: problem
27+
attributes:
28+
label: Documentation problem
29+
description: >
30+
Please provide a description of what documentation you believe needs to be fixed/improved
31+
validations:
32+
required: true
33+
34+
#---------------- Suggested Fix --------------
35+
- type: textarea
36+
id: suggested-fix
37+
attributes:
38+
label: Suggested fix for documentation
39+
description: >
40+
Please explain the suggested fix and **why** it's better than the existing documentation
41+
validations:
42+
required: true
43+
44+
#-------------- Code of Conduct --------------
45+
- type: checkboxes
46+
id: terms
47+
attributes:
48+
label: Code of Conduct
49+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/saezlab/ontograph/blob/main/CODE_OF_CONDUCT.md).
50+
options:
51+
- label: I agree to follow this project's Code of Conduct
52+
required: true
53+
54+
- type: markdown
55+
attributes:
56+
value: >
57+
Thank you for your contribution! 🎉 – Saezlab Organization - OmniPath team

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Pull Request
2+
3+
> When to use: Use this default template for most changes (features, small fixes, refactors, docs). If your change is a bug fix, performance optimization, maintenance/chore, or a breaking change, consider using one of the specialized templates under `.github/PULL_REQUEST_TEMPLATE/`.
4+
5+
Thank you for contributing to OntoGraph! Please fill out the sections below to help us review efficiently.
6+
7+
## Summary
8+
9+
- Link to issue(s): Closes #<issue-number> (or) Related to #<issue-number>
10+
- Brief description of the change:
11+
12+
## Type of change
13+
14+
Select one or more:
15+
- [ ] Bug fix (non-breaking change that fixes an issue)
16+
- [ ] Feature (non-breaking change that adds functionality)
17+
- [ ] Documentation update
18+
- [ ] Refactor/maintenance (no functional change)
19+
- [ ] Performance improvement
20+
- [ ] CI/CD or tooling
21+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
22+
23+
## Changes
24+
25+
- High-level list of changes (modules, major functions/classes touched)
26+
- Any data files or schema changes
27+
- Any API changes (inputs/outputs, public interfaces)
28+
29+
## Screenshots or demos (optional)
30+
31+
If relevant, include images, terminal outputs, or notebook snippets.
32+
33+
## Checklist
34+
35+
- Code quality & style
36+
- [ ] Follows project style and conventions
37+
- [ ] Pre-commit hooks run locally
38+
39+
```bash
40+
pre-commit run -a
41+
```
42+
- Tests
43+
- [ ] Unit tests added/updated
44+
- [ ] All tests pass locally (`pytest`)
45+
- [ ] Includes edge cases (empty/null, invalid input, large inputs)
46+
- Documentation
47+
- [ ] User docs updated (MkDocs in `docs/` as needed)
48+
- [ ] README updated if behavior or usage changed
49+
- [ ] Docstrings and comments added where helpful
50+
- Reliability
51+
- [ ] No secrets or credentials in code or history
52+
- [ ] Backwards compatibility considered; migration notes added if breaking
53+
- [ ] Performance implications considered (time/memory), benchmarks if relevant
54+
- Project hygiene
55+
- [ ] Linked issues referenced with `Closes #...` or `Related to #...`
56+
- [ ] Changelog entry prepared (see `CHANGELOG.md`)
57+
- [ ] Labels applied (bug, enhancement, docs, etc.)
58+
- Community standards
59+
- [ ] I have read and agree to the [Code of Conduct](../CODE_OF_CONDUCT.md)
60+
61+
## Test plan
62+
63+
Describe how you tested the changes. Include commands, datasets, and expected outcomes. If applicable, reference tests in `tests/`:
64+
65+
```bash
66+
# Example (adjust as needed)
67+
pytest -q
68+
```
69+
70+
## Breaking changes (if any)
71+
72+
- Describe what breaks and how users should migrate.
73+
- Provide a migration example or script if possible.
74+
75+
## Additional context
76+
77+
- Risks, trade-offs, or follow-up tasks
78+
- Dependencies or environment changes
79+
- Related PRs
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Breaking Change Pull Request
2+
3+
> When to use: Changes that break backwards compatibility; requires a migration guide and communication plan.
4+
5+
## Summary
6+
- Closes #<issue-number>
7+
- Scope and rationale for breaking change
8+
9+
## Deprecation & Migration
10+
- Deprecation path and timeline
11+
- Migration guide and examples
12+
- Scripts or tools to assist migration
13+
14+
## API / Data impacts
15+
- Public API changes
16+
- Data/schema changes
17+
18+
## Versioning & Communication
19+
- Version bump strategy
20+
- Communication plan (release notes, docs)
21+
22+
## Tests
23+
- [ ] Updated tests for new behavior
24+
- [ ] Migration tests where possible
25+
- [ ] All tests pass locally (`pytest -q`)
26+
27+
## Documentation
28+
- [ ] Docs updated (MkDocs) and README
29+
- [ ] Clear migration instructions visible to users
30+
31+
## Checklist
32+
- [ ] Backwards compatibility noted as broken (explicit)
33+
- [ ] Changelog entry prepared (see `CHANGELOG.md`)
34+
- [ ] Risk assessment and rollback plan
35+
- [ ] Labels set (breaking-change)
36+
- [ ] I agree to the [Code of Conduct](../../CODE_OF_CONDUCT.md)
37+
38+
## Additional notes
39+
- Known limitations and follow-ups

0 commit comments

Comments
 (0)