forked from AFPy/python-docs-fr
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.
This commit is contained in:
parent
fecaae68a8
commit
09c0e53be3
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
@ -20,9 +20,7 @@ jobs:
|
||||||
apt_dependencies: hunspell hunspell-fr-comprehensive
|
apt_dependencies: hunspell hunspell-fr-comprehensive
|
||||||
command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES'
|
command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES'
|
||||||
- name: Longueur des lignes
|
- name: Longueur des lignes
|
||||||
package: powrap
|
command: 'awk ''{if (length($0) > 80) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES'
|
||||||
apt_dependencies: gettext
|
|
||||||
command: 'powrap --check --quiet --diff $CHANGED_PO_FILES'
|
|
||||||
- name: Grammaire
|
- name: Grammaire
|
||||||
package: padpo
|
package: padpo
|
||||||
command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore'
|
command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore'
|
||||||
|
@ -42,9 +40,13 @@ jobs:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Install ${{ matrix.tool.package }}
|
- name: Install ${{ matrix.tool.package }}
|
||||||
run: |
|
run: |
|
||||||
[ -n "${{ matrix.tool.apt_dependencies }}" ] && sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }}
|
if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then
|
||||||
|
sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }}
|
||||||
|
fi
|
||||||
|
if [ -n "${{ matrix.tool.package }}" ]; then
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
python -m pip install ${{ matrix.tool.package }}
|
python -m pip install ${{ matrix.tool.package }}
|
||||||
|
fi
|
||||||
- name: Run ${{ matrix.tool.package }}
|
- name: Run ${{ matrix.tool.package }}
|
||||||
env:
|
env:
|
||||||
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
|
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user