diff --git a/packages/checkfile/lektor_checkfile.py b/packages/checkfile/lektor_checkfile.py index a7c595815..79738f70e 100644 --- a/packages/checkfile/lektor_checkfile.py +++ b/packages/checkfile/lektor_checkfile.py @@ -1,11 +1,14 @@ # -*- coding: utf-8 -*- +# Standard library import os + +# Third-party from lektor.pluginsystem import Plugin class CheckfilePlugin(Plugin): name = "CheckFile" - description = u"Plugin to check if a file is present." + description = "Plugin to check if a file is present." def on_setup_env(self, **extra): def check_file(filename): diff --git a/packages/checkfile/setup.py b/packages/checkfile/setup.py index 2e3ef30f0..f4add79dc 100644 --- a/packages/checkfile/setup.py +++ b/packages/checkfile/setup.py @@ -1,8 +1,10 @@ +# Standard library import ast import io import re -from setuptools import setup, find_packages +# Third-party +from setuptools import find_packages, setup with io.open("README.md", "rt", encoding="utf8") as f: readme = f.read() @@ -35,6 +37,8 @@ "Programming Language :: Python :: 3", ], entry_points={ - "lektor.plugins": ["checkfile = lektor_checkfile:CheckfilePlugin",] # noqa: E231, E501 + "lektor.plugins": [ + "checkfile = lektor_checkfile:CheckfilePlugin", + ] }, ) diff --git a/packages/markdown-table/lektor_markdown_table.py b/packages/markdown-table/lektor_markdown_table.py index b52493766..2e084e617 100644 --- a/packages/markdown-table/lektor_markdown_table.py +++ b/packages/markdown-table/lektor_markdown_table.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# Third-party from lektor.pluginsystem import Plugin diff --git a/packages/markdown-table/setup.py b/packages/markdown-table/setup.py index 65f471183..f3b41bf1b 100644 --- a/packages/markdown-table/setup.py +++ b/packages/markdown-table/setup.py @@ -1,6 +1,8 @@ -from setuptools import setup, find_packages +# Standard library from os import path +# Third-party +from setuptools import find_packages, setup this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: