Skip to content

Commit f33bf3e

Browse files
authored
Merge pull request #380 from mitodl/renovate/pypi-black-vulnerability
chore(deps): update dependency black to v24 [security]
2 parents af55c55 + 81a33b4 commit f33bf3e

30 files changed

+59
-24
lines changed

async_subprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""asyncio subprocess create_subprocess_exec"""
2+
23
import asyncio
34
import subprocess
45

async_subprocess_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for async_subprocess_test"""
2+
23
import subprocess
34

45
import pytest

bot_local_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Make sure bot_local works"""
2+
23
import pytest
34

45
from bot_local import async_main

bot_test.py

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for Doof"""
2+
23
import asyncio
34
from datetime import timedelta
45

@@ -1045,13 +1046,15 @@ async def test_wait_for_checkboxes(
10451046
get_release_pr_mock = mocker.async_patch("bot.get_release_pr", return_value=pr)
10461047
get_unchecked_patch = mocker.async_patch(
10471048
"bot.get_unchecked_authors",
1048-
side_effect=[
1049-
{"author1", "author2", "author3"},
1050-
{"author2"},
1051-
set(),
1052-
]
1053-
if has_checkboxes
1054-
else [set()],
1049+
side_effect=(
1050+
[
1051+
{"author1", "author2", "author3"},
1052+
{"author2"},
1053+
set(),
1054+
]
1055+
if has_checkboxes
1056+
else [set()]
1057+
),
10551058
)
10561059
doof.slack_users = [
10571060
{"profile": {"real_name": name}, "id": username}
@@ -1403,15 +1406,17 @@ async def test_start_new_releases(
14031406
)
14041407
get_release_pr_mock = mocker.async_patch(
14051408
"bot.get_release_pr",
1406-
return_value=ReleasePR(
1407-
version=old_version,
1408-
url="https://example.com",
1409-
body="...",
1410-
number=123,
1411-
open=False,
1412-
)
1413-
if has_release_pr
1414-
else None,
1409+
return_value=(
1410+
ReleasePR(
1411+
version=old_version,
1412+
url="https://example.com",
1413+
body="...",
1414+
number=123,
1415+
open=False,
1416+
)
1417+
if has_release_pr
1418+
else None
1419+
),
14151420
)
14161421
release_notes = f"Release notes for {test_repo.repo_url}"
14171422
get_project_version_mock = mocker.async_patch(

client_wrapper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Wrapper for HTTP client. Replaces httpx until it matures."""
2+
23
import requests
34
from requests.adapters import HTTPAdapter
45
from urllib3.util import Retry

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Fixtures for tests"""
2+
23
import os
34

45
import pytest

constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Constants"""
2+
23
import os
34

45

exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Exceptions for release script"""
2+
23
from subprocess import CalledProcessError
34

45

finish_release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Release script to finish the release"""
2+
23
import os
34
import re
45
from datetime import datetime

finish_release_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for finish_release.py"""
2+
23
from datetime import datetime
34
import re
45
import os

0 commit comments

Comments
 (0)