Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Delete sections and checklist items that don't apply to your change.

## Related issue

<!-- Link the issue by full URL. "Closes" closes it on merge; use "Part of" if it stays open.
Closes https://github.com/WBGeo/codebase/issues/<number> -->
<!-- "Closes" closes the issue on merge; use "Part of" if it stays open.
Closes #<number> -->

## Type of change

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:

# Builds the docs (with the coverage report under /coverage) on every run;
# deploys them to https://wbgeo.github.io/ only from main, and only once the repository
# variable DEPLOY_DOCS is "true" (GitLab CI still deploys the docs while both pipelines run).
# variable DEPLOY_DOCS is "true" (and the secret DOCS_DEPLOY_KEY is set).
docs:
needs: test
runs-on: ubuntu-latest
Expand Down
132 changes: 0 additions & 132 deletions .gitlab-ci.yml

This file was deleted.

33 changes: 18 additions & 15 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ python -m pytest tests -q # full suite, roughly 8-15
```

- Run the tests of the code you touched after each change; run the full suite
before opening or updating a merge request.
before opening or updating a pull request.
- Long-running end-to-end tests are marked `@pytest.mark.integration` and
`@pytest.mark.slow`.
- `--show-plots` / `--show-plots-always` open plots from tests that support them.
Expand Down Expand Up @@ -208,21 +208,24 @@ The essentials:
docker compose up -d py_runner
```

## Git, issues and merge requests

- The public home of the project is https://github.com/WBGeo/codebase; the
**issues** live there. The team currently still develops on an internal GitLab
instance and mirrors `main` to GitHub; the full move is tracked in
https://github.com/WBGeo/codebase/issues/10.
- Work on a branch, open a merge (pull) request against `main`, and run the full
test suite first.
- **Reference issues by full URL** in commits and merge requests, e.g.
`Closes https://github.com/WBGeo/codebase/issues/4`. While development still
runs through the internal instance, a bare `#4` would point to the wrong issue
tracker; the URL form works everywhere and closes the GitHub issue once the
commit reaches `main`.
## Git, issues and pull requests

- The project lives at https://github.com/WBGeo/codebase: code, issues, pull
requests and CI (GitHub Actions). The former GitLab instance is archived.
- Work on a branch (or a fork), run the full test suite, and open a pull request
against `main`. `main` only accepts pull requests: one approving review by a
code owner (`.github/CODEOWNERS`), resolved review threads and the checks
`test`, `docs` and `dependency-review`. New commits dismiss earlier approvals.
Merge with a merge commit or rebase.
- **Reference issues** in commits and pull requests with `Closes #4` (closes the
issue once the change reaches `main`) or `Part of #4`; use the full URL for
issues in other repositories, e.g.
`https://github.com/WBGeo/case-studies/issues/1`.
- The Docker images (`docker-compose.yml`, GOLEM) and the package index for
`py_api_wbgeo` (`requirements.txt`) are still hosted in the GitLab registry;
keep those URLs until they move.
- Don't commit local files: the Docker dev mounts, `own_data/`, caches such as
`*/input_data/topography_cache/`, or credentials (a local
`.env` holds tokens, e.g. for LiquidEarth).
- Docs and docstrings link to https://wbgeo.github.io/ and to github.com URLs,
never to the internal GitLab instance (it is not publicly accessible).
never to the archived GitLab instance (it is not publicly accessible).
4 changes: 2 additions & 2 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ how components and types work.

5. **Update the documentation**: docstrings, the component manuals in `docs/components/`
(e.g. when a component is renamed) and the developer guide where relevant.
6. **Open a pull request** against `main`, describe what and why, and reference the issue by
full URL, e.g. `Closes https://github.com/WBGeo/codebase/issues/<number>`. The template contains
6. **Open a pull request** against `main`, describe what and why, and reference the issue,
e.g. `Closes #<number>` (or `Part of #<number>` if it stays open). The template contains
a short checklist.
7. **Review.** The owners of the changed areas (see [`.github/CODEOWNERS`](.github/CODEOWNERS))
are asked for a review automatically.
Expand Down