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
1 changed files with 8 additions and 6 deletions
14 .github/workflows/tests.yml vendored
14
.github/workflows/tests.yml vendored | | @ -20,9 +20,7 @@ jobs: | |||
apt_dependencies: hunspell hunspell-fr-comprehensive | ||||
command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES' | ||||
- name: Longueur des lignes | ||||
package: powrap | ||||
apt_dependencies: gettext | ||||
command: 'powrap --check --quiet --diff $CHANGED_PO_FILES' | ||||
command: 'awk ''{if (length($0) > 80) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES' | ||||
- name: Grammaire | ||||
package: padpo | ||||
command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore' | ||||
| | @ -42,9 +40,13 @@ jobs: | |||
python-version: '3.9' | ||||
- name: Install ${{ matrix.tool.package }} | ||||
run: | | ||||
[ -n "${{ matrix.tool.apt_dependencies }}" ] && sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }} | ||||
python -m pip install --upgrade pip setuptools wheel | ||||
python -m pip install ${{ matrix.tool.package }} | ||||
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 ${{ matrix.tool.package }} | ||||
fi | ||||
- name: Run ${{ matrix.tool.package }} | ||||
env: | ||||
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }} | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue