From 9c2827c3799f5123f41dfc869269167c27cc62f9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 08:52:04 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#79) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.265 → v0.0.270](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.265...v0.0.270) * Update .pre-commit-config.yaml Update ruff-pre-commit to v0.0.272 -> https://github.com/astral-sh/ruff-pre-commit/releases/tag/v0.0.272 * Removed option from Ruff Fixes an issue with https://github.com/astral-sh/ruff/pull/4313 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jesse Spangenberger --- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 - src/xleapp/artifact/__init__.py | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5719eb..d157ff9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,7 +47,7 @@ repos: language_version: python3 - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.265 + rev: v0.0.272 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index 6d02256..2366b44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,6 @@ xleapp = "xleapp.cli:cli" [tool.ruff] format = "grouped" line-length = 90 -update-check = false target-version = "py310" fix = true unfixable = ["E711"] diff --git a/src/xleapp/artifact/__init__.py b/src/xleapp/artifact/__init__.py index 536b966..fb40e70 100644 --- a/src/xleapp/artifact/__init__.py +++ b/src/xleapp/artifact/__init__.py @@ -12,11 +12,14 @@ from xleapp.helpers import utils from .abstract import AbstractBase as AbstractBase -from .abstract import Artifact as Artifact from .decorators import Search as Search from .decorators import core_artifact as core_artifact from .decorators import long_running_process as long_running_process from .service import Artifacts as Artifacts +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from .abstract import Artifact as Artifact logger_log = logging.getLogger("xleapp.logfile")