1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 15:45:41 +02:00

ci: add check of gettext files with poexam

This commit is contained in:
Sébastien Helleu
2026-03-25 21:33:52 +01:00
parent dc28050b8b
commit d9e56c3df8
5 changed files with 932 additions and 2 deletions
+14 -2
View File
@@ -11,6 +11,14 @@ on:
- cron: '22 9 * * 2'
env:
CHECK_DEPS_UBUNTU: >-
curl
gettext
hunspell
hunspell-en-us
hunspell-fr
pipx
shellcheck
WEECHAT_DEPS_UBUNTU: >-
asciidoctor
build-essential
@@ -121,12 +129,16 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install curl gettext pipx shellcheck
sudo apt-get --yes --no-install-recommends install ${{ env.CHECK_DEPS_UBUNTU }}
pipx install msgcheck ruff
cargo install --version 0.0.8 poexam
- name: Check gettext files
- name: Check gettext files (msgcheck)
run: msgcheck po/*.po
- name: Check gettext files (poexam)
run: poexam check --file-stats --rule-stats
- name: Check shell and Python scripts
run: ./tools/check_scripts.sh
+281
View File
File diff suppressed because it is too large Load Diff
+611
View File
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2026 Sébastien Helleu <flashcode@flashtux.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
[check]
select = [
"checks",
]
ignore = [
"brackets",
"double-quotes",
"unchanged",
]
path_words = "."
langs = [
"en_US",
"fr",
]
+8
View File
@@ -19,3 +19,11 @@ path = [
precedence = "override"
SPDX-FileCopyrightText = "2003-2026 Sébastien Helleu <flashcode@flashtux.org>"
SPDX-License-Identifier = "GPL-3.0-or-later"
[[annotations]]
path = [
".poexam/*.dic",
]
precedence = "override"
SPDX-FileCopyrightText = "2026 Sébastien Helleu <flashcode@flashtux.org>"
SPDX-License-Identifier = "GPL-3.0-or-later"