Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.72 KB

CONTRIBUTING.md

File metadata and controls

43 lines (30 loc) · 1.72 KB

Contributing

The following is a set of guidelines for contributing to ERT.

Ground Rules

  1. We use Black code formatting
  2. All code must be testable and unit tested.

Commits

We strive to keep a consistent and clean git history and all contributions should adhere to the following:

  1. All tests should pass on all commits(*)
  2. A commit should do one atomic change on the repository
  3. The commit message should be descriptive.

We expect commit messages to follow the style described here. Also, focus on making clear the reasons why you made the change in the first place—the way things worked before the change (and what was wrong with that), the way they work now, and why you decided to solve it the way you did. A commit body is required for anything except very small changes.

(*) Tip for making sure all tests passes, try out --exec while rebasing. You can then have all tests run per commit in a single command.

Pull Request Process

  1. Work on your own fork of the main repo
  2. Push your commits and make a draft pull request using the pull request template.
  3. Check that your pull request passes all tests.
  4. When all tests have passed and your are happy with your changes, change your pull request to "ready for review" and ask for a code review.
  5. When your code has been approved—rebase, squash and merge your changes.

Build documentation

You can build the documentation after installation by running

pip install -r dev-requirements.txt
sphinx-build -n -v -E -W ./docs ./tmp/ert_docs

and then open the generated ./tmp/ert_docs/index.html in a browser.

To automatically reload on changes you may use

sphinx-autobuild docs docs/_build/html