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
11 changes: 11 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2025 Sébastien Helleu <flashcode@flashtux.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later

- id: msgcheck
name: msgcheck
description: 'Perform various checks on gettext files'
entry: msgcheck
language: python
types:
- pofile
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ The environment variable `MSGCHECK_OPTIONS` can be set with some default options
The script returns exit code **0** if all files checked are OK (0 errors or option
`--extract` given) or it returns **N**: number of files with errors (1 ≤ N ≤ 255).

### pre-commit

To use msgcheck with [pre-commit](https://pre-commit.com/), add the following to your `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/flashcode/msgcheck
rev: v4.1.0 # Use the latest tag or a specific commit hash
hooks:
- id: msgcheck
args: [] # add optional arguments like '--fuzzy', see above
```

## Example

```
Expand Down
Loading