diff --git a/scripts/lint.sh b/scripts/lint.sh index 721790e5d..0682d29df 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -20,14 +20,10 @@ touch logs/sphinxlint.txt cd cpython/Doc -# If version is 3.12 or newer, then generate POT disabling literal blocks and -# update translations with fresh POT files. If version 3.11 or older, -# disable new 'unnecessary-parentheses' check, not fixed before these versions. +# If version 3.11 or older, disable new 'unnecessary-parentheses' check, +# not fixed before 3.12. minor_version=$(git branch --show-current | sed 's|^3\.||') -if [ $minor_version -ge 12 ]; then - make gettext SPHINXOPTS='-q -Dgettext_additional_targets=["index"]' - sphinx-intl update -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null -else +if [ $minor_version -le 11 ]; then alias sphinx-lint='sphinx-lint --disable unnecessary-parentheses' fi
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: