Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump flake8-bugbear from 22.12.6 to 23.3.12 #822

Merged
merged 2 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pre-commit = "^2.21.0"
bandit = "^1.7.5"
flake8 = ">=4.0.1,<6.0.0"
black = "^22.12"
flake8-bugbear = "^22.12.6"
flake8-bugbear = ">=22.12.6,<24.0.0"
flake8-docstrings = "^1.7.0"
flake8-rst-docstrings = "^0.3.0"
pep8-naming = "^0.13.2"
Expand Down
4 changes: 3 additions & 1 deletion src/renault_api/kamereon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ async def request(
# Some endpoints return arrays instead of objects.
# These need to be wrapped in an object.
if response_text.startswith("["):
response_text = f'{{"{wrap_array_in or "data"}": {response_text}}}'
response_text = (
f'{{"{wrap_array_in or "data"}": {response_text}}}' # noqa: B907
)
if not response_text.startswith("{"):
# Check for HTTP error
http_response.raise_for_status()
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/test_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def test_http_post(mocked_responses: aioresponses, cli_runner: CliRunner) -> Non
json_body = json.dumps(body)
result = cli_runner.invoke(
__main__.main,
f"http post {endpoint} '{json_body}'",
f"http post {endpoint} '{json_body}'", # noqa: B907
)
assert result.exit_code == 0, result.exception

Expand Down Expand Up @@ -497,7 +497,7 @@ def test_http_post_file(

result = cli_runner.invoke(
__main__.main,
f"http post-file {endpoint} '{json_file}'",
f"http post-file {endpoint} '{json_file}'", # noqa: B907
)
assert result.exit_code == 0, result.exception

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_file_content_as_wrapped_schema(
"""Read fixture text file as specified schema."""
with open(filename, "r") as file:
content = file.read()
content = f'{{"{wrap_in}": {content}}}'
content = f'{{"{wrap_in}": {content}}}' # noqa: B907
return schema.loads(content)


Expand Down