Skip to content
#

flake8-plugin

Here are 51 public repositories matching this topic...

pawamoy
pawamoy commented Mar 27, 2021

What's wrong

wps reports a useless else clause after a for, but I don't think the clause is useless: I don't see any way to remove it without writing more code:

for search_path in self.environment.loader.searchpath:
    template_relative_path = Path(search_path) / relative_path
    if template_relative_path.exists():
        break
else:
    raise UserMessageError(

Improve this page

Add a description, image, and links to the flake8-plugin topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the flake8-plugin topic, visit your repo's landing page and select "manage topics."

Learn more