From 35792139c54c6a368b7d25738169aca7daacc5da Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Wed, 7 Apr 2021 10:07:40 -0700 Subject: [PATCH] update style/syntax per black & isort --- packages/checkfile/lektor_checkfile.py | 5 ++++- packages/checkfile/setup.py | 8 ++++++-- packages/markdown-table/lektor_markdown_table.py | 1 + packages/markdown-table/setup.py | 4 +++- 4 files changed, 14 insertions(+), 4 deletions(-) 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: