Skip to content

Commit

Permalink
docs: improve contrib guide (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsloot authored Apr 20, 2024
1 parent ea7ddb8 commit 12f696f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ enforcement:

## Commit guidelines

We use the conventional commits specification for our commit messages. This means that your commit message should be structured as follows:
We use the conventional commits specification for our commit messages. This
means that your commit message should be structured as follows:

```markdown
<type>[optional scope]: <description>
Expand All @@ -47,7 +48,8 @@ We use the conventional commits specification for our commit messages. This mean
[optional footer]
```

For more information, see the [conventional commits specification](https://www.conventionalcommits.org).
For more information, see the
[conventional commits specification](https://www.conventionalcommits.org).

## Branching strategy

Expand All @@ -61,7 +63,8 @@ being merged into the main codebase.

## Testing and code coverage

We use the packages [`testthat`](https://testthat.r-lib.org) for unit testing and [`covr`](https://covr.r-lib.org) for checking code coverage.
We use the packages [`testthat`](https://testthat.r-lib.org) for unit testing
and [`covr`](https://covr.r-lib.org) for checking code coverage.

Run all tests with the following command:

Expand All @@ -75,6 +78,11 @@ Check the code coverage with the following command:
covr::package_coverage()
```

The package uses a continuous benchmark workflow. It runs all R scripts in the
`bench` directory for `HEAD` and `base` (in case of a PR) or `HEAD~1` (in case
of a push), collects summary output from calls to `bench::mark`, and calculates
relative differences. The workflow will comment the results on PRs.

## Summary

- We recommend that you create a Git branch for each pull request (PR).
Expand All @@ -95,4 +103,6 @@ covr::package_coverage()

## Code of Conduct

Please note that the rmo project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this project you agree to abide by its terms.
Please note that the rmo project is released with a
[Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this
project you agree to abide by its terms.

0 comments on commit 12f696f

Please sign in to comment.