From 28fe268a6607ea82095a4b0f144b5b1bc4e0a767 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 19:29:51 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.1.1 → 24.2.0](https://github.com/psf/black/compare/24.1.1...24.2.0) --- .pre-commit-config.yaml | 2 +- bugbear.py | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d45958..f9677ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 24.2.0 hooks: - id: black args: diff --git a/bugbear.py b/bugbear.py index 6a3c2be..05693b5 100644 --- a/bugbear.py +++ b/bugbear.py @@ -1495,15 +1495,17 @@ def myunparse(node: ast.AST) -> str: # pragma: no cover format_specifier = re.sub(r"\.\d*", "", format_specifier) # skip if any invalid characters in format spec - invalid_characters = "".join(( - "=", # align character only valid for numerics - "+- ", # sign - "0123456789", # width digits - "z", # coerce negative zero floating point to positive - "#", # alternate form - "_,", # thousands grouping - "bcdeEfFgGnoxX%", # various number specifiers - )) + invalid_characters = "".join( + ( + "=", # align character only valid for numerics + "+- ", # sign + "0123456789", # width digits + "z", # coerce negative zero floating point to positive + "#", # alternate form + "_,", # thousands grouping + "bcdeEfFgGnoxX%", # various number specifiers + ) + ) if set(format_specifier).intersection(invalid_characters): current_mark = variable = None continue