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.
Pull Request Checklist
[x] Ensured tests pass and (if applicable) updated functional test output
[x] Conformed to code style guidelines by running appropriate linting tools
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.
Pull Request Checklist