Skip to content

lint: Remove disabling step of literal blocks #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading