From 02ccc4a954738b5266022d40c1f8677883dc0c5b Mon Sep 17 00:00:00 2001 From: haidaraM Date: Sat, 7 Sep 2024 09:05:16 +0000 Subject: [PATCH] Auto lint and format using ruff --- ansibleplaybookgrapher/graph_model.py | 2 +- setup.py | 4 ++-- tests/test_json_renderer.py | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ansibleplaybookgrapher/graph_model.py b/ansibleplaybookgrapher/graph_model.py index 3e36087..b9914cb 100644 --- a/ansibleplaybookgrapher/graph_model.py +++ b/ansibleplaybookgrapher/graph_model.py @@ -15,7 +15,7 @@ import os from collections import defaultdict from dataclasses import dataclass, asdict -from typing import Dict, List, Set, Tuple, Optional, TypedDict +from typing import Dict, List, Set, Tuple, Optional from ansibleplaybookgrapher.utils import generate_id, get_play_colors diff --git a/setup.py b/setup.py index b0d9881..5dc1e55 100644 --- a/setup.py +++ b/setup.py @@ -64,8 +64,8 @@ def read_requirements(path): package_data={"ansible-playbook-grapher": ["data/*"]}, include_package_data=True, download_url="https://github.com/haidaraM/ansible-playbook-grapher/archive/v" - + __version__ - + ".tar.gz", + + __version__ + + ".tar.gz", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", diff --git a/tests/test_json_renderer.py b/tests/test_json_renderer.py index 7788817..a9d2f46 100644 --- a/tests/test_json_renderer.py +++ b/tests/test_json_renderer.py @@ -221,8 +221,7 @@ def test_with_block(request): ids=["no_group", "group"], ) def test_group_roles_by_name( - request, flag, - roles_number, tasks_number, post_tasks_number + request, flag, roles_number, tasks_number, post_tasks_number ): """ Test when grouping roles by name. This doesn't really affect the JSON renderer: multiple nodes will have the same ID.