-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow latest python 3. added black and flake8
- Loading branch information
1 parent
d1bc409
commit 7e0daf1
Showing
7 changed files
with
296 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
exclude = | ||
.git, | ||
webpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,35 +4,37 @@ | |
|
||
from setuptools import setup, find_packages | ||
|
||
with io.open('README.md', 'rt', encoding="utf8") as f: | ||
with io.open("README.md", "rt", encoding="utf8") as f: | ||
readme = f.read() | ||
|
||
_description_re = re.compile(r'description\s+=\s+(?P<description>.*)') | ||
_description_re = re.compile(r"description\s+=\s+(?P<description>.*)") | ||
|
||
with open('lektor_checkfile.py', 'rb') as f: | ||
description = str(ast.literal_eval(_description_re.search( | ||
f.read().decode('utf-8')).group(1))) | ||
with open("lektor_checkfile.py", "rb") as f: | ||
description = str( | ||
ast.literal_eval( | ||
_description_re.search(f.read().decode("utf-8")).group(1) | ||
) | ||
) | ||
|
||
setup( | ||
author='mayank', | ||
author_email='[email protected]', | ||
author="mayank", | ||
author_email="[email protected]", | ||
description=description, | ||
keywords='Lektor plugin', | ||
license='MIT', | ||
keywords="Lektor plugin", | ||
license="MIT", | ||
long_description=readme, | ||
long_description_content_type='text/markdown', | ||
name='lektor-checkfile', | ||
long_description_content_type="text/markdown", | ||
name="lektor-checkfile", | ||
packages=find_packages(), | ||
py_modules=['lektor_checkfile'], | ||
py_modules=["lektor_checkfile"], | ||
# url='[link to your repository]', | ||
version='0.1', | ||
version="0.1", | ||
classifiers=[ | ||
'Framework :: Lektor', | ||
'Environment :: Plugins', | ||
"Environment :: Plugins", | ||
"Framework :: Lektor", | ||
"Programming Language :: Python :: 3", | ||
], | ||
entry_points={ | ||
'lektor.plugins': [ | ||
'checkfile = lektor_checkfile:CheckfilePlugin', | ||
] | ||
} | ||
"lektor.plugins": ["checkfile = lektor_checkfile:CheckfilePlugin",] # noqa: E231, E501 | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[tool.black] | ||
line-length = 79 | ||
exclude = ''' | ||
/( | ||
\.git | ||
| webpack | ||
)/ | ||
''' |