From 274123c4322f102b46456cdc8ae0ef25376cb793 Mon Sep 17 00:00:00 2001 From: Poiuy7312 Date: Fri, 15 Sep 2023 09:08:04 -0400 Subject: [PATCH] Fixed some formatting --- chasten/database.py | 2 +- chasten/main.py | 2 +- chasten/util.py | 2 +- tests/test_database.py | 6 +----- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/chasten/database.py b/chasten/database.py index 251dc7c7..bc0a144f 100644 --- a/chasten/database.py +++ b/chasten/database.py @@ -141,7 +141,7 @@ def executable_name(OpSystem: str = "Linux") -> str: return virtual_env_location + exe_directory + executable_name -def start_datasette_server( # noqa: PLR0912 +def start_datasette_server( # noqa: PLR0912, PLR0913 database_path: Path, datasette_metadata: Path, datasette_platform: str = enumerations.DatasettePublicationPlatform.FLY.value, diff --git a/chasten/main.py b/chasten/main.py index 70c31018..ae57bf91 100644 --- a/chasten/main.py +++ b/chasten/main.py @@ -822,7 +822,7 @@ def datasette_serve( # noqa: PLR0913 datasette_port=port, datasette_metadata=metadata, publish=False, - OpSystem = util.get_OS() + OpSystem=util.get_OS(), ) diff --git a/chasten/util.py b/chasten/util.py index a222727c..ec03cf92 100644 --- a/chasten/util.py +++ b/chasten/util.py @@ -1,7 +1,6 @@ """Utilities for use within chasten.""" import importlib.metadata - import platform from chasten import constants @@ -19,6 +18,7 @@ def get_human_readable_boolean(answer: bool) -> str: # the provided answer is false return constants.humanreadable.No + def get_OS() -> str: """Gets the Operating system of the user.""" OpSystem = platform.system() diff --git a/tests/test_database.py b/tests/test_database.py index 51567150..2a824862 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -2,11 +2,7 @@ import pytest -from chasten import database - -from chasten import util - -from chasten import filesystem +from chasten import database, filesystem, util @pytest.mark.fuzz