From 821ee1ebec80bf7fff526030f56fbf25fe44c174 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Tue, 22 Nov 2022 16:24:15 +0100 Subject: [PATCH] rename test to tests --- tools/alias_collision/check_alias_collision.py | 4 ++-- .../{test => tests}/test_check_alias_collision.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename tools/alias_collision/{test => tests}/test_check_alias_collision.py (100%) diff --git a/tools/alias_collision/check_alias_collision.py b/tools/alias_collision/check_alias_collision.py index 0aeba8eb7..6579974d7 100644 --- a/tools/alias_collision/check_alias_collision.py +++ b/tools/alias_collision/check_alias_collision.py @@ -1,6 +1,6 @@ """Check for alias collisions within the codebase""" -from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, FileType +from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser from pathlib import Path from typing import List from dataclasses import dataclass @@ -54,7 +54,7 @@ def find_all_aliases(path: Path) -> List: def check_for_duplicates(aliases: List[Alias]) -> None: - elements = dict() + elements = {} for alias in aliases: if alias.alias in elements: existing = elements[alias.alias] diff --git a/tools/alias_collision/test/test_check_alias_collision.py b/tools/alias_collision/tests/test_check_alias_collision.py similarity index 100% rename from tools/alias_collision/test/test_check_alias_collision.py rename to tools/alias_collision/tests/test_check_alias_collision.py