Skip to content

Commit 3433a5c

Browse files
committed
Update code for new version of black
1 parent a43cae0 commit 3433a5c

18 files changed

+1
-19
lines changed

checks/migrations/0001_initial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class Migration(migrations.Migration):
12-
1312
initial = True
1413

1514
dependencies = []

checks/migrations/0002_upgrade_some_TextFields_to_ListFields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
("checks", "0001_initial"),
1211
]

checks/migrations/0003_summer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Migration(migrations.Migration):
10-
1110
dependencies = [
1211
("checks", "0002_upgrade_some_TextFields_to_ListFields"),
1312
]

checks/migrations/0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def fix_unused_v4_fields(apps, schema_editor):
1616

1717

1818
class Migration(migrations.Migration):
19-
2019
dependencies = [
2120
("checks", "0003_summer"),
2221
]

checks/migrations/0005_autoconf_db_options.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def record_report_id_thresholds(apps, schema_editor):
3030

3131

3232
class Migration(migrations.Migration):
33-
3433
dependencies = [
3534
("checks", "0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views"),
3635
]

checks/migrations/0006_mailtestauth_dmarc_record_org_domain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("checks", "0005_autoconf_db_options"),
109
]

checks/migrations/0007_null_mx.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Migration(migrations.Migration):
10-
1110
dependencies = [
1211
("checks", "0006_mailtestauth_dmarc_record_org_domain"),
1312
]

checks/migrations/0008_django_upgrade.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Migration(migrations.Migration):
10-
1110
dependencies = [
1211
("checks", "0007_null_mx"),
1312
]

checks/migrations/0009_rpki.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Migration(migrations.Migration):
10-
1110
dependencies = [
1211
("checks", "0008_django_upgrade"),
1312
]

checks/migrations/0010_add_securitytxt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
("checks", "0009_rpki"),
1110
]

checks/tasks/ipv6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def strip_irrelevant_html(html):
589589
"simhash IncompleteRead content > 5000000 - if this happens more often we may "
590590
"need to enlarge it, logging for statistical purposes"
591591
)
592-
except (OSError):
592+
except OSError:
593593
if v4_conn:
594594
v4_conn.close()
595595
if v6_conn:

checks/tasks/rpki.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def callback(results: Mapping[TestName, TestResult], domain, parent, parent_name
107107

108108
for testname, serviceresults in results:
109109
for host, routing in serviceresults.items():
110-
111110
kw = {
112111
parent_name: parent,
113112
"host": host,

checks/tasks/tls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,6 @@ def dane(url, port, chain, task, dane_cb_data, score_none, score_none_bogus, sco
12061206
stdin=subprocess.PIPE,
12071207
universal_newlines=True,
12081208
) as proc:
1209-
12101209
try:
12111210
res = proc.communicate(input=chain_txt, timeout=10)
12121211
except subprocess.TimeoutExpired:
@@ -2573,7 +2572,6 @@ def _check_ciphers(self, test_config, first_cipher_only=False):
25732572
while True:
25742573
try:
25752574
with conn_type.from_conn(self._conn, ciphers=cipher_string, version=tls_version) as new_conn:
2576-
25772575
# record the cipher details and add the cipher to the
25782576
# insufficient or phase out sets.
25792577
self._note_conn_details(new_conn)

checks/tasks/update.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def _update_hof():
136136
mail = sorted(mail, key=lambda x: x["timestamp"], reverse=True)
137137

138138
for data, red_id in ((champions, redis_id.hof_champions), (web, redis_id.hof_web), (mail, redis_id.hof_mail)):
139-
140139
cached_data = {"date": None, "count": 0, "data": data}
141140
if cached_data["data"]:
142141
cached_data["date"] = cached_data["data"][0]["timestamp"]

interface/batch/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@
485485
)
486486

487487
if settings.INTERNET_NL_CHECK_SUPPORT_MAIL:
488-
489488
REPORT_METADATA_MAIL_MAP.append(
490489
{
491490
"name": "mail_auth",

interface/views/connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ def network_ipv4(request, test_id: int = 0):
549549

550550
@jsonp
551551
def network_resolver(request, test_id: int = 0):
552-
553552
# Overwrite the test_id using data from django-hosts.
554553
if hasattr(request, "test_id"):
555554
test_id = request.test_id

internetnl/test/test_settings_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def test_get_boolean_env_set_false(monkeypatch):
3030

3131

3232
def test_remove_sentry_pii():
33-
3433
mock_event_regular = {
3534
"exception": {
3635
"values": [

tests/unittests/test_tasks_rpki.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def setUp(self) -> None:
3131

3232
@override_settings(ROUTINATOR_URL="https://example.net/api/v1/validity")
3333
def test_do_rpki(self):
34-
3534
for domain, expected_result in BEACONS.items():
3635
with self.subTest(f"{domain}"):
3736
for asn, prefix in expected_result["routes"]:

0 commit comments

Comments
 (0)