|
4 | 4 |
|
5 | 5 | from setuptools import setup, find_packages |
6 | 6 |
|
7 | | -with io.open('README.md', 'rt', encoding="utf8") as f: |
| 7 | +with io.open("README.md", "rt", encoding="utf8") as f: |
8 | 8 | readme = f.read() |
9 | 9 |
|
10 | | -_description_re = re.compile(r'description\s+=\s+(?P<description>.*)') |
| 10 | +_description_re = re.compile(r"description\s+=\s+(?P<description>.*)") |
11 | 11 |
|
12 | | -with open('lektor_checkfile.py', 'rb') as f: |
13 | | - description = str(ast.literal_eval(_description_re.search( |
14 | | - f.read().decode('utf-8')).group(1))) |
| 12 | +with open("lektor_checkfile.py", "rb") as f: |
| 13 | + description = str( |
| 14 | + ast.literal_eval( |
| 15 | + _description_re.search(f.read().decode("utf-8")).group(1) |
| 16 | + ) |
| 17 | + ) |
15 | 18 |
|
16 | 19 | setup( |
17 | | - author='mayank', |
18 | | - author_email='mayank.nader11@gmail.com', |
| 20 | + author="mayank", |
| 21 | + author_email="mayank.nader11@gmail.com", |
19 | 22 | description=description, |
20 | | - keywords='Lektor plugin', |
21 | | - license='MIT', |
| 23 | + keywords="Lektor plugin", |
| 24 | + license="MIT", |
22 | 25 | long_description=readme, |
23 | | - long_description_content_type='text/markdown', |
24 | | - name='lektor-checkfile', |
| 26 | + long_description_content_type="text/markdown", |
| 27 | + name="lektor-checkfile", |
25 | 28 | packages=find_packages(), |
26 | | - py_modules=['lektor_checkfile'], |
| 29 | + py_modules=["lektor_checkfile"], |
27 | 30 | # url='[link to your repository]', |
28 | | - version='0.1', |
| 31 | + version="0.1", |
29 | 32 | classifiers=[ |
30 | | - 'Framework :: Lektor', |
31 | | - 'Environment :: Plugins', |
| 33 | + "Environment :: Plugins", |
| 34 | + "Framework :: Lektor", |
| 35 | + "Programming Language :: Python :: 3", |
32 | 36 | ], |
33 | 37 | entry_points={ |
34 | | - 'lektor.plugins': [ |
35 | | - 'checkfile = lektor_checkfile:CheckfilePlugin', |
36 | | - ] |
37 | | - } |
| 38 | + "lektor.plugins": ["checkfile = lektor_checkfile:CheckfilePlugin",] # noqa: E231, E501 |
| 39 | + }, |
38 | 40 | ) |
0 commit comments