You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current contributing guidelines are now three years old. The original guidelines from pandas have been updated since then. Is there scope for updating OGGM's guidelines? If so, how do we involve the community?
Possible discussion points:
pandas now has a dedicated section on automated contributions. Currently, OGGM does not and we've seen multiple agent-assisted (or generated) contributions. What is the recommended review process? How do we proceed with contributions that are useful, but do not respond to code reviews?
Should we update OGGM's guidelines to reflect changes to pandas'? Are there quick fixes, e.g. stale or outdated links? Can we update style guidelines, e.g. type hints, commit message formats, config files for black, flake8, or pylint.
How do we want to involve the wider OGGM community? Should a discussion be between the core dev team, existing contributors. or general users? How do we make changes to contributing guidelines without alienating existing and potential contributors?
How do we enforce guidelines? Should we introduce pre-commit hooks to enforce linting, type hints, style guidelines, or should this still be done in a separate commit as currently recommended? Should style changes be backdated e.g. pandas uses double quotes, OGGM uses single for strings, but applying this to the entire codebase at once makes future PRs quite noisy.
Do many people read the contributing guidelines? Do we have traffic statistics?
Very timely. Someone just asked about it on our email address.
I like Pandas take on it, I think we should adopt it as is.
yes
Nah, no need to. We can open a PR and tell them on slack that this is happening, but experience shows that PRs from teh community are... rare, to say the least
Before enforcing anything we should be consistent in our own code base. The new cool kid around the block is Ruff btw, I think we should use this: https://docs.astral.sh/ruff. We would need to (1) apply it to teh codebase in one giant commit and (2) apply it via CI so people doen't have to worry about it.
Probably not, no. Therefore we shouldn't be overthinking it, it's mostly about what the three of us want from it
For 4., I would suggest adopting pandas approach with the pre-commit hook? They also use ruff. Alternatively I can look into setting up a GHA workflow, but I think @TimoRoth would prefer no third-party actions (which I would agree with)? So it would probably be a separate job in its own container after the tests pass.
Activity
fmaussion commentedon Nov 4, 2026
Very timely. Someone just asked about it on our email address.
gampnico commentedon Nov 4, 2026
Great, I can look over this next week.
For 4., I would suggest adopting
pandasapproach with the pre-commit hook? They also use ruff. Alternatively I can look into setting up a GHA workflow, but I think @TimoRoth would prefer no third-party actions (which I would agree with)? So it would probably be a separate job in its own container after the tests pass.