Skip to content

Commit

Permalink
update style/syntax per black & isort
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot committed Apr 7, 2021
1 parent 16f7218 commit 3579213
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/checkfile/lektor_checkfile.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
8 changes: 6 additions & 2 deletions packages/checkfile/setup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -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",
]
},
)
1 change: 1 addition & 0 deletions packages/markdown-table/lektor_markdown_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# Third-party
from lektor.pluginsystem import Plugin


Expand Down
4 changes: 3 additions & 1 deletion packages/markdown-table/setup.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 3579213

Please sign in to comment.