Skip to content

Commit

Permalink
Document in README
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Sep 10, 2024
1 parent 4f420af commit 66648cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Git. This uses [pre-commit](https://pre-commit.com/). Once you
```yaml
repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v3.0.2
rev: v4.0.3
hooks:
- id: reuse
```
Expand All @@ -256,6 +256,17 @@ Then run `pre-commit install`. Now, every time you commit, `reuse lint` is run
in the background, and will prevent your commit from going through if there was
an error.

If you instead want to only lint files that were changed in your commit, you can
use the following configuration:

```yaml
repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v4.0.3
hooks:
- id: reuse-lint-file
```

## Maintainers

- Carmen Bianca Bakker <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ push = false
"pyproject.toml" = [
'^version = "{pep440_version}"$',
'^current_version = "{version}"$',
'^rev: {version}$',
]
"src/reuse/__init__.py" = [
'__version__ = "{pep440_version}"$',
Expand Down

0 comments on commit 66648cc

Please sign in to comment.