From d0671570b23cdea29be3b283f99d378d19002ac8 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 27 Mar 2023 14:22:09 +0200 Subject: [PATCH] Fix black and flake errors in setup.py Change-Id: I9522836f89e660c280c49a75ad5fd853454401e3 Signed-off-by: garciadeblas --- setup.py | 10 ++++------ tox.ini | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 844bb93..3f4ddac 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,8 @@ # limitations under the License. import os -from setuptools import setup, find_packages, find_namespace_packages + +from setuptools import find_namespace_packages, setup _name = "osm_ngsa" _description = "OSM Service Assurance Airflow DAGs and libraries" @@ -27,9 +28,7 @@ setup( name=_name, description=_description, long_description=README, - use_scm_version={ - "write_to": "src/osm_ngsa/_version.py" - }, + use_scm_version={"write_to": "src/osm_ngsa/_version.py"}, author="ETSI OSM", author_email="osmsupport@etsi.org", maintainer="ETSI OSM", @@ -37,8 +36,7 @@ setup( url="https://osm.etsi.org/gitweb/?p=osm/NG-SA.git;a=summary", license="Apache 2.0", package_dir={"": "src"}, - packages=find_namespace_packages(where='src'), + packages=find_namespace_packages(where="src"), include_package_data=True, setup_requires=["setuptools-scm"], ) - diff --git a/tox.ini b/tox.ini index e28d5c1..3301d0b 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,7 @@ parallel_show_output = true deps = black skip_install = true commands = - black --check --diff src + black --check --diff src setup.py ####################################################################################### @@ -60,7 +60,7 @@ commands = deps = flake8==5.0.4 flake8-import-order commands = - flake8 src/ + flake8 src setup.py ####################################################################################### -- 2.25.1