mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
The ruff and ruff-format fixes
This commit is contained in:
parent
4f46fedd73
commit
6d8597addb
24 changed files with 48 additions and 79 deletions
|
|
@ -22,7 +22,7 @@ from pelican.utils import get_date, pelican_open, posixize_path
|
|||
try:
|
||||
from markdown import Markdown
|
||||
except ImportError:
|
||||
Markdown = False # NOQA
|
||||
Markdown = False
|
||||
|
||||
# Metadata processors have no way to discard an unwanted value, so we have
|
||||
# them return this value instead to signal that it should be discarded later.
|
||||
|
|
@ -607,8 +607,8 @@ class Readers(FileStampDataCacher):
|
|||
|
||||
# eventually filter the content with typogrify if asked so
|
||||
if self.settings["TYPOGRIFY"]:
|
||||
from typogrify.filters import typogrify
|
||||
import smartypants
|
||||
from typogrify.filters import typogrify
|
||||
|
||||
typogrify_dashes = self.settings["TYPOGRIFY_DASHES"]
|
||||
if typogrify_dashes == "oldschool":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue