1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Agathe Porte 2d375bc135 tasks.py.jinja2: optimize imports
When opening the generated tasks.py file with a Python linter enabled,
some imports will be marked as unecessary depending on the options
passed to pelican-quickstart.

Add if statements around the optional imports so they are used
only when necessary.
2024-08-04 22:39:50 +09:00
..
plugins The ruff and ruff-format fixes 2024-05-30 09:08:16 -05:00
tests Introduce paragraph count summary (#2761) 2024-06-25 15:07:41 +02:00
themes chore: update URLs of GitHub Ribbons 2024-06-19 19:11:41 +02:00
tools tasks.py.jinja2: optimize imports 2024-08-04 22:39:50 +09:00
__init__.py Log warnings about files that would have been processed by disabled readers 2024-06-17 09:30:55 -05:00
__main__.py The ruff and ruff-format fixes 2024-05-30 09:08:16 -05:00
cache.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
contents.py Introduce paragraph count summary (#2761) 2024-06-25 15:07:41 +02:00
generators.py Log warnings about files that would have been processed by disabled readers 2024-06-17 09:30:55 -05:00
log.py Choose logging handler via --log-handler CLI option (#3293) 2024-05-30 17:13:27 +02:00
paginator.py Fixes in files for ruff T201, RUF001, PLR2004, B904, SLOT000, PYI024, PIE800 2024-05-31 10:41:24 -05:00
readers.py Tweak Markdown-not-installed console warnings 2024-06-25 10:49:07 +02:00
rstdirectives.py More ruff fixes in files: stop ignoring C408, UP007, PLR5501, B006 2024-05-30 13:21:12 -05:00
server.py Fixes in files for ruff T201, RUF001, PLR2004, B904, SLOT000, PYI024, PIE800 2024-05-31 10:41:24 -05:00
settings.py Rename default branch to main 2024-06-25 11:33:28 +02:00
signals.py Apply code style to project via: ruff format . 2023-10-29 22:18:29 +01:00
urlwrappers.py More ruff fixes in files: stop ignoring C408, UP007, PLR5501, B006 2024-05-30 13:21:12 -05:00
utils.py Introduce paragraph count summary (#2761) 2024-06-25 15:07:41 +02:00
writers.py ruff UP031 in files: use format specifiers instead of percent format 2024-06-01 16:00:17 -05:00