🎨 flake8-bugbear update

This commit is contained in:
Gina Häußge committed 2023-02-21 17:20:44 +01:00
1 parent 2231e81efd
commit 88b99a4444
4 files changed
+5 -2

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
# pre-commit version updates
b4f265d9f67508677e1697e74e248b895da7f43c
2231e81efd32d649798f7a58cdb1755e34902d8a
# Switch to black formatting
1f93b2355a2816918e11a55e61b42010d15a6720
+1 -1
View File
@@ -54,7 +54,7 @@ repos:
- id: flake8
args: [--config=setup.cfg]
additional_dependencies:
- flake8-bugbear
- flake8-bugbear==23.2.13
exclude: ^(docs/)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
+2 -1
View File
@@ -2350,7 +2350,8 @@ class EntryPointMetadata(pkginfo.Distribution):
warnings.warn(
"No package metadata found for package {}".format(
self.entry_point.module_name
)
),
stacklevel=2,
)
+1
View File
@@ -53,6 +53,7 @@ def clean_ansi(line: Union[str, bytes]) -> Union[str, bytes]:
warnings.warn(
"Calling clean_ansi with bytes is deprecated, call with str instead",
DeprecationWarning,
stacklevel=2,
)
return to_bytes(_ANSI_REGEX.sub("", to_unicode(line)))
return _ANSI_REGEX.sub("", line)