From a122ed3119d3ffabbf407b3332cfd617066204df Mon Sep 17 00:00:00 2001 From: Iain-S <25081046+Iain-S@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:17:18 +0100 Subject: [PATCH] Reformat with updated black --- docs/conf.py | 1 + rctab_cli/__init__.py | 1 + rctab_cli/auth.py | 1 + rctab_cli/config.py | 1 + rctab_cli/state.py | 1 + rctab_cli/sub_apps/__init__.py | 1 + rctab_cli/sub_apps/sub.py | 1 + rctab_cli/types.py | 1 + rctab_cli/utils.py | 1 + tests/utils.py | 1 + 10 files changed, 10 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 586ced8..06241a6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Configuration file for the Sphinx documentation builder.""" + # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import sphinx_rtd_theme diff --git a/rctab_cli/__init__.py b/rctab_cli/__init__.py index 325106c..0bf33b0 100644 --- a/rctab_cli/__init__.py +++ b/rctab_cli/__init__.py @@ -1,4 +1,5 @@ """RCTab CLI package.""" + from rctab_cli.cli import acquire_access_token, app __all__ = ["app", "acquire_access_token"] diff --git a/rctab_cli/auth.py b/rctab_cli/auth.py index b923164..ead45c8 100644 --- a/rctab_cli/auth.py +++ b/rctab_cli/auth.py @@ -1,4 +1,5 @@ """Authentication helpers for the RCTab CLI.""" + import atexit import logging from pathlib import Path diff --git a/rctab_cli/config.py b/rctab_cli/config.py index 949e9d0..85d7501 100644 --- a/rctab_cli/config.py +++ b/rctab_cli/config.py @@ -3,6 +3,7 @@ Attributes: APP_NAME: Name of the CLI application. """ + from functools import lru_cache from uuid import UUID diff --git a/rctab_cli/state.py b/rctab_cli/state.py index 73c2672..42f2f35 100644 --- a/rctab_cli/state.py +++ b/rctab_cli/state.py @@ -1,4 +1,5 @@ """State module.""" + from dataclasses import dataclass from typing import Callable, Dict, Optional diff --git a/rctab_cli/sub_apps/__init__.py b/rctab_cli/sub_apps/__init__.py index ab80fb9..cac47df 100644 --- a/rctab_cli/sub_apps/__init__.py +++ b/rctab_cli/sub_apps/__init__.py @@ -1,4 +1,5 @@ """Subscription management app.""" + from rctab_cli.sub_apps.sub import subscription_app __all__ = ["subscription_app"] diff --git a/rctab_cli/sub_apps/sub.py b/rctab_cli/sub_apps/sub.py index 03f35b1..76debbd 100644 --- a/rctab_cli/sub_apps/sub.py +++ b/rctab_cli/sub_apps/sub.py @@ -4,6 +4,7 @@ subscription_app: Typer object for the subscription CLI. finance_app: Typer object for the finance CLI. """ + # pylint: disable=too-many-arguments, redefined-outer-name import calendar import json diff --git a/rctab_cli/types.py b/rctab_cli/types.py index 0656f1f..ab531a6 100644 --- a/rctab_cli/types.py +++ b/rctab_cli/types.py @@ -1,4 +1,5 @@ """Types for the RCTab CLI.""" + from pydantic import AnyHttpUrl, BaseModel diff --git a/rctab_cli/utils.py b/rctab_cli/utils.py index 282eb73..7bd6c69 100644 --- a/rctab_cli/utils.py +++ b/rctab_cli/utils.py @@ -1,4 +1,5 @@ """Utility functions for the CLI.""" + import typer from rctab_cli.config import get_cli_settings diff --git a/tests/utils.py b/tests/utils.py index 04ccd51..d723f7b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,4 +1,5 @@ """Utilities for testing.""" + from click.testing import Result