From 0cea6f3cfada9bf38b2c10767a4fd9964cb20eb8 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 7 Mar 2023 22:17:14 +0100 Subject: [PATCH] pylinting setup.py --- setup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index d90702e..e36707f 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +""" Initialize Plugin """ import ast import io import re @@ -10,14 +11,14 @@ with io.open('README.md', 'rt', encoding="utf8") as f: _description_re = re.compile(r'description\s+=\s+(?P.*)') -with open('lektor_render_template.py', 'rb') as f: - description = str(ast.literal_eval(_description_re.search( - f.read().decode('utf-8')).group(1))) +with open('lektor_render_template.py', 'rb') as readfile: + DESCRIPTION = str(ast.literal_eval(_description_re.search( + readfile.read().decode('utf-8')).group(1))) setup( author='l3d', author_email='l3d@c3woc.de', - description=description, + description=DESCRIPTION, keywords='Lektor plugin', license='MIT', long_description=readme,