From 8b8a4dc375eacc40f530867e73e214274ea4af45 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:49:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- profiler/profiler_script.py | 1 + tests/burntsushi.py | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/profiler/profiler_script.py b/profiler/profiler_script.py index 7264dc7..ba34619 100644 --- a/profiler/profiler_script.py +++ b/profiler/profiler_script.py @@ -4,6 +4,7 @@ - `tox -e profile` - `firefox .tox/prof/output.svg` """ + from pathlib import Path import tomli diff --git a/tests/burntsushi.py b/tests/burntsushi.py index 71228c6..039a953 100644 --- a/tests/burntsushi.py +++ b/tests/burntsushi.py @@ -1,7 +1,6 @@ # SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2021 Taneli Hukkinen # Licensed to PSF under a Contributor Agreement. - """Utilities for tests that are in the "burntsushi" format.""" import datetime @@ -53,11 +52,14 @@ def convert(obj): # noqa: C901 def normalize(obj: Any) -> Any: """Normalize test objects. - This normalizes primitive values (e.g. floats), and also converts from - TOML compliance format [1] to BurntSushi format [2]. + This normalizes primitive values (e.g. floats), and also converts + from TOML compliance format [1] to BurntSushi format [2]. - [1] https://github.com/toml-lang/compliance/blob/db7c3211fda30ff9ddb10292f4aeda7e2e10abc4/docs/json-encoding.md # noqa: E501 - [2] https://github.com/BurntSushi/toml-test/blob/4634fdf3a6ecd6aaea5f4cdcd98b2733c2694993/README.md # noqa: E501 + [1] + https://github.com/toml-lang/compliance/blob/db7c3211fda30ff9ddb10292f4aeda7e2e10abc4/docs/json-encoding.md + # noqa: E501 [2] + https://github.com/BurntSushi/toml-test/blob/4634fdf3a6ecd6aaea5f4cdcd98b2733c2694993/README.md + # noqa: E501 """ if isinstance(obj, list): return [normalize(item) for item in obj]