Skip to content

Commit 5bdc475

Browse files
committed
Enhancements
- Add `__version__` to `__init__.py` - Allow to import the package with `from pre_commit_po_hooks import __version__` - More descriptive names for CLI namespace
1 parent 53e8721 commit 5bdc475

18 files changed

Lines changed: 33 additions & 24 deletions

.bumpversion.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[bumpversion]
2-
current_version = 1.7.0
2+
current_version = 1.7.3
33

44
[bumpversion:file:setup.cfg]
55

66
[bumpversion:file:README.md]
7+
8+
[bumpversion:file:pre_commit_po_hooks/__init__.py]

.pre-commit-hooks.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,43 +30,43 @@
3030
language: python
3131
- id: check-metadata
3232
name: check-metadata
33-
entry: check-metadata-hook
33+
entry: check-po-metadata-hook
3434
description: Checks that the metadata values of your PO files matchs against some regexes
3535
files: \.po$
3636
language: python
3737
- id: standard-metadata
3838
name: standard-metadata
39-
entry: check-metadata-hook --standard-headers
39+
entry: check-po-metadata-hook --standard-headers
4040
description: Checks that the metadata of your PO files fits a set of standard requirements
4141
files: \.po$
4242
language: python
4343
- id: no-metadata
4444
name: no-metadata
45-
entry: check-metadata-hook --no-metadata
45+
entry: check-po-metadata-hook --no-metadata
4646
description: Checks that your PO files don't contain metadata headers
4747
files: \.po$
4848
language: python
4949
- id: remove-metadata
5050
name: remove-metadata
51-
entry: check-metadata-hook --no-metadata --remove-metadata
51+
entry: check-po-metadata-hook --no-metadata --remove-metadata
5252
description: Removes metadata headers from your PO files
5353
files: \.po$
5454
language: python
5555
- id: check-entries
5656
name: check-entries
57-
entry: check-entries-hook
57+
entry: check-po-entries-hook
5858
description: Check that PO files entries match a set of requirements passed by parameters
5959
files: \.po$
6060
language: python
6161
- id: max-messages
6262
name: max-messages
63-
entry: check-entries-hook --max-messages
63+
entry: check-po-entries-hook --max-messages
6464
description: Checks that each one of your PO files don't contain more than X messages
6565
files: \.po$
6666
language: python
6767
- id: max-lines
6868
name: max-lines
69-
entry: check-entries-hook --max-lines
69+
entry: check-po-entries-hook --max-lines
7070
description: Checks that each one of your PO files don't contain more than X lines
7171
files: \.po$
7272
language: python

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Hooks for pre-commit useful working with PO files.
1111

1212
```yaml
1313
- repo: https://github.com/mondeja/pre-commit-po-hooks
14-
rev: v1.7.0
14+
rev: v1.7.3
1515
hooks:
1616
- id: obsolete-messages
1717
- id: untranslated-messages

hooks/__init__.py

Whitespace-only changes.

pre_commit_po_hooks/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "1.7.3"
File renamed without changes.

0 commit comments

Comments
 (0)