From 61d906d582c74ca7ef6d22c81aa7753324c5a680 Mon Sep 17 00:00:00 2001 From: abawi Date: Mon, 12 Feb 2024 11:05:12 +0100 Subject: [PATCH] Refactored code with Code style black and minor style updates --- .github/workflows/manual_update_version.yml | 5 +++++ README.md | 8 ++++++-- setup.py | 4 ++-- upgrade_project.sh | 4 ++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/manual_update_version.yml b/.github/workflows/manual_update_version.yml index 344079f..556d60a 100644 --- a/.github/workflows/manual_update_version.yml +++ b/.github/workflows/manual_update_version.yml @@ -27,6 +27,11 @@ jobs: # sed -i.bak -E "s|[^<]+|$VERSION|" wrapyfi_extensions/wrapyfi_ros2_interfaces/package.xml # sed -i.bak -E "s|[^<]+|$VERSION|" wrapyfi_extensions/wrapyfi_ros_interfaces/package.xml + - name: Refactor with Code Black + run: | + python3 -m pip install black + black . + - name: Generate Documentation run: | cd docs diff --git a/README.md b/README.md index c5234e7..95e5ab9 100755 --- a/README.md +++ b/README.md @@ -14,13 +14,17 @@ [![arXiv](https://custom-icon-badges.demolab.com/badge/arXiv:2302.09648-lightyellow.svg?logo=arxiv-logomark-small)](https://arxiv.org/abs/2302.09648 "arXiv link") [![doi](https://custom-icon-badges.demolab.com/badge/10.1145/3610977.3637471-lightyellow.svg?logo=doi_logo)](https://doi.org/10.1145/3610977.3637471 "doi link") -[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://black.readthedocs.io/ "code style link") + + [![License](https://custom-icon-badges.demolab.com/github/license/denvercoder1/custom-icon-badges?logo=law&logoColor=white)](https://github.com/fabawi/wrapyfi/blob/main/LICENSE "license MIT") [![FOSSA status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmodular-ml%2Fwrapyfi.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmodular-ml%2Fwrapyfi?ref=badge_shield&issueType=license) [![Documentation status](https://readthedocs.org/projects/wrapyfi/badge/?version=latest)](https://wrapyfi.readthedocs.io/en/latest/?badge=latest) -[![codecov](https://codecov.io/github/modular-ml/wrapyfi/graph/badge.svg?token=5SD1A6ENKE)](https://codecov.io/github/modular-ml/wrapyfi) +[![codecov](https://codecov.io/github/modular-ml/wrapyfi/graph/badge.svg?token=5SD1A6ENKE)](https://codecov.io/github/modular-ml/wrapyfi) [![PyPI version](https://badge.fury.io/py/wrapyfi.svg)](https://badge.fury.io/py/wrapyfi) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://black.readthedocs.io/ "code style link") +[![PyPI - Implementation](https://img.shields.io/pypi/implementation/wrapyfi)](https://pypi.org/project/wrapyfi/ "implementation") +[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/wrapyfi)](https://pypi.org/project/wrapyfi/ "python version") [![PyPI total downloads](https://img.shields.io/pepy/dt/wrapyfi)](https://www.pepy.tech/projects/wrapyfi) [![Docker Hub Pulls](https://img.shields.io/docker/pulls/modularml/wrapyfi.svg)](https://hub.docker.com/repository/docker/modularml/wrapyfi) diff --git a/setup.py b/setup.py index 17a04f0..ae26782 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def check_cv2(default_python="opencv-python"): setuptools.setup( name="wrapyfi", - version="0.4.39", + version="0.4.40", description="Wrapyfi is a wrapper for simplifying Middleware communication", url="https://github.com/fabawi/wrapyfi/blob/main/", project_urls={ @@ -70,7 +70,7 @@ def check_cv2(default_python="opencv-python"): python_requires=">=3.6", setup_requires=["cython>=0.29.1"], classifiers=[ - "Development Status :: 4 - Production/Stable", + "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: Robotics", diff --git a/upgrade_project.sh b/upgrade_project.sh index 181bb77..e0d679c 100755 --- a/upgrade_project.sh +++ b/upgrade_project.sh @@ -39,6 +39,10 @@ update_version_in_package_xml() { # GENERATE DOCUMENTATION ####################################################################################################################### +# refactor code with black +python3 -m pip install black +black . + # compile docs with sphinx cd docs python3 -m pip install -r requirements.txt