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