Remove unneeded exclusion

This commit is contained in:
Kovid Goyal 2025-01-27 09:44:16 +05:30
parent 1715558c8f
commit 68f8d4925e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ unfixable = ['PIE794', 'ISC001']
"src/calibre/gui2/store/stores/*" = ['UP']
"src/calibre/gui2/tts/manager.py" = ['UP037']
"src/calibre/utils/copy_files.py" = ['UP037']
"src/calibre/utils/smartypants.py" = ['RUF039', 'RUF055']
"src/calibre/utils/smartypants.py" = ['RUF055']
"src/calibre/web/feeds/news.py" = ['RET501']
"src/qt/*.py" = ['I', 'E302']
"src/qt/*.pyi" = ['I']

View File

@ -493,7 +493,7 @@ def smartyPants(text, attr='1'):
if not in_pre:
t = processEscapes(t)
t = re.sub('"', '"', t)
t = re.sub(r'"', '"', t)
t = dashes_func(t)
t = ellipses_func(t)
# Note: backticks need to be processed before quotes.