Skip to content

[discussion]: update contributing guidelines #2030

Open

Description

@gampnico

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:

  1. 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?
  2. 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.
  3. 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?
  4. 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.
  5. Do many people read the contributing guidelines? Do we have traffic statistics?

Activity

  1. fmaussion commented on Nov 4, 2026

    @fmaussion
    Member

    Very timely. Someone just asked about it on our email address.

    1. I like Pandas take on it, I think we should adopt it as is.
    2. yes
    3. 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
    4. 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.
    5. Probably not, no. Therefore we shouldn't be overthinking it, it's mostly about what the three of us want from it
  2. gampnico commented on Nov 4, 2026

    @gampnico
    MemberAuthor

    Great, I can look over this next week.

    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.

  3. added this to the 1.7.x milestone on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions