Bump flake8-bugbear from 24.12.12 to 25.10.21 (#3046)

* Bump flake8-bugbear from 24.12.12 to 25.10.21

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 24.12.12 to 25.10.21.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/24.12.12...25.10.21)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-version: 25.10.21
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix B042 warnings from flake8-bugbear 25.10.21 upgrade

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Janousek <alex.janousek@gsa.gov>
This commit is contained in:
dependabot[bot]
2025-10-24 14:08:32 -04:00
committed by GitHub
parent e89369b6a5
commit 2fda7f45c0
3 changed files with 11 additions and 9 deletions

View File

@@ -11,13 +11,14 @@ TOKEN_ERROR_DEFAULT_ERROR_MESSAGE = "Invalid token: " + TOKEN_ERROR_GUIDANCE
class TokenError(Exception):
def __init__(self, message=None, token=None):
def __init__(self, message=None, token=None): # noqa: B042
self.message = (
message + ". " + TOKEN_ERROR_GUIDANCE
if message
else TOKEN_ERROR_DEFAULT_ERROR_MESSAGE
)
self.token = token
super().__init__(self.message)
class TokenExpiredError(TokenError):
@@ -45,9 +46,10 @@ class TokenIssuedAtError(TokenDecodeError):
class APIError(Exception):
def __init__(self, response: Response = None, message: str = None):
def __init__(self, response: Response = None, message: str = None): # noqa: B042
self.response = response
self._message = message
super().__init__(message or REQUEST_ERROR_MESSAGE)
def __str__(self):
return f"{self.status_code} - {self.message}"

12
poetry.lock generated
View File

@@ -1063,19 +1063,19 @@ pyflakes = ">=3.4.0,<3.5.0"
[[package]]
name = "flake8-bugbear"
version = "24.12.12"
version = "25.10.21"
description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle."
optional = false
python-versions = ">=3.8.1"
python-versions = ">=3.10"
groups = ["dev"]
files = [
{file = "flake8_bugbear-24.12.12-py3-none-any.whl", hash = "sha256:1b6967436f65ca22a42e5373aaa6f2d87966ade9aa38d4baf2a1be550767545e"},
{file = "flake8_bugbear-24.12.12.tar.gz", hash = "sha256:46273cef0a6b6ff48ca2d69e472f41420a42a46e24b2a8972e4f0d6733d12a64"},
{file = "flake8_bugbear-25.10.21-py3-none-any.whl", hash = "sha256:f1c5654f9d9d3e62e90da1f0335551fdbc565c51749713177dbcfb9edb105405"},
{file = "flake8_bugbear-25.10.21.tar.gz", hash = "sha256:2876afcaed8bfb3464cf33e3ec42cc3bec0a004165b84400dc3392b0547c2714"},
]
[package.dependencies]
attrs = ">=22.2.0"
flake8 = ">=6.0.0"
flake8 = ">=7.2.0"
[package.extras]
dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit", "pytest", "tox"]
@@ -4421,4 +4421,4 @@ cffi = ["cffi (>=1.17) ; python_version >= \"3.13\" and platform_python_implemen
[metadata]
lock-version = "2.1"
python-versions = "^3.13.2"
content-hash = "d0613e1cd515fe861dbc8cc5a45090a59735b71ef47be17397a071165641a3b4"
content-hash = "0ae483e31326198d4991c233eaa907545d0b3777720f2d3d6b9b3f4f92b8ce2b"

View File

@@ -81,7 +81,7 @@ coverage = "*"
detect-secrets = "^1.5.0"
freezegun = "^1.5.5"
flake8 = "^7.3.0"
flake8-bugbear = "^24.12.12"
flake8-bugbear = "^25.10.21"
flake8-print = "^5.0.0"
flake8-pytest-style = "^2.2.0"
isort = "^7.0.0"