Skip to content

Commit e2c26d8

Browse files
committed
Check line length without checking exact wrapping.
Problem is: gettext changed it line wrapping algorithm, so we can no longer rely on everyone having the same wrapping: some will still get the old one for a very long time, while other will have the new one.
1 parent 533e71b commit e2c26d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
apt_dependencies: hunspell hunspell-fr-comprehensive
2121
command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES'
2222
- name: Longueur des lignes
23-
package: powrap
24-
apt_dependencies: gettext
25-
command: 'powrap --check --quiet --diff $CHANGED_PO_FILES'
23+
command: 'awk ''{if (length($0) > 80) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES'
2624
- name: Grammaire
2725
package: padpo
2826
command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore'
@@ -44,7 +42,7 @@ jobs:
4442
run: |
4543
[ -n "${{ matrix.tool.apt_dependencies }}" ] && sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }}
4644
python -m pip install --upgrade pip setuptools wheel
47-
python -m pip install ${{ matrix.tool.package }}
45+
[ -n "${{ matrix.tool.package }}" ] && python -m pip install ${{ matrix.tool.package }}
4846
- name: Run ${{ matrix.tool.package }}
4947
env:
5048
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}

0 commit comments

Comments
 (0)