From cd87cabff0c8eaa731c4f6d81f3de499a4ed2d30 Mon Sep 17 00:00:00 2001 From: Sebastien Rousseau Date: Sat, 10 Feb 2024 18:19:04 +0000 Subject: [PATCH] fix(akande): :sparkles: flake8 warning --- setup.py | 29 +++++++++++++++-------------- sync_cfg.py | 16 ++++++++++------ 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/setup.py b/setup.py index a17bbc7..097e67b 100644 --- a/setup.py +++ b/setup.py @@ -14,26 +14,27 @@ author="Sebastian Rousseau", author_email="sebastian.rousseau@gmail.com", description=""" - Akande: A versatile voice assistant powered by OpenAI's GPT-3. It offers both voice and text interaction, - leveraging advanced speech recognition and text-to-speech capabilities for a wide range of tasks. + Akande: A versatile voice assistant powered by OpenAI's GPT-3. It + offers both voice and text interaction, leveraging advanced speech + recognition and text-to-speech capabilities for a wide range of tasks. """, long_description=long_description, long_description_content_type="text/markdown", license="Apache Software License", - name='akande', - version='0.0.1', - url='https://github.com/sebastienrousseau/akande', + name="akande", + version="0.0.1", + url="https://github.com/sebastienrousseau/akande", packages=find_packages(), install_requires=requirements, - python_requires='>=3.7', + python_requires=">=3.7", classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", ], ) diff --git a/sync_cfg.py b/sync_cfg.py index b71a96e..1fc408e 100644 --- a/sync_cfg.py +++ b/sync_cfg.py @@ -2,21 +2,25 @@ from pathlib import Path # Path to your setup.cfg and requirements.txt files -setup_cfg_path = Path('setup.cfg') -requirements_txt_path = Path('requirements.txt') +setup_cfg_path = Path("setup.cfg") +requirements_txt_path = Path("requirements.txt") # Read requirements.txt and extract the packages -with requirements_txt_path.open('r') as file: +with requirements_txt_path.open("r") as file: requirements = file.readlines() - requirements = [req.strip() for req in requirements if req.strip() and not req.startswith('#')] + requirements = [ + req.strip() + for req in requirements + if req.strip() and not req.startswith("#") + ] # Load the existing setup.cfg config = ConfigParser() config.read(setup_cfg_path) # Update install_requires in setup.cfg -config['options']['install_requires'] = '\n '.join(requirements) +config["options"]["install_requires"] = "\n ".join(requirements) # Save the updated setup.cfg -with setup_cfg_path.open('w') as configfile: +with setup_cfg_path.open("w") as configfile: config.write(configfile)