Skip to content

Commit

Permalink
Update code for new version of black
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Feb 14, 2023
1 parent a43cae0 commit 3433a5c
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 19 deletions.
1 change: 0 additions & 1 deletion checks/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0001_initial"),
]
Expand Down
1 change: 0 additions & 1 deletion checks/migrations/0003_summer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0002_upgrade_some_TextFields_to_ListFields"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def fix_unused_v4_fields(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("checks", "0003_summer"),
]
Expand Down
1 change: 0 additions & 1 deletion checks/migrations/0005_autoconf_db_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def record_report_id_thresholds(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("checks", "0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0005_autoconf_db_options"),
]
Expand Down
1 change: 0 additions & 1 deletion checks/migrations/0007_null_mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0006_mailtestauth_dmarc_record_org_domain"),
]
Expand Down
1 change: 0 additions & 1 deletion checks/migrations/0008_django_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0007_null_mx"),
]
Expand Down
1 change: 0 additions & 1 deletion checks/migrations/0009_rpki.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0008_django_upgrade"),
]
Expand Down
1 change: 0 additions & 1 deletion checks/migrations/0010_add_securitytxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("checks", "0009_rpki"),
]
Expand Down
2 changes: 1 addition & 1 deletion checks/tasks/ipv6.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def strip_irrelevant_html(html):
"simhash IncompleteRead content > 5000000 - if this happens more often we may "
"need to enlarge it, logging for statistical purposes"
)
except (OSError):
except OSError:
if v4_conn:
v4_conn.close()
if v6_conn:
Expand Down
1 change: 0 additions & 1 deletion checks/tasks/rpki.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def callback(results: Mapping[TestName, TestResult], domain, parent, parent_name

for testname, serviceresults in results:
for host, routing in serviceresults.items():

kw = {
parent_name: parent,
"host": host,
Expand Down
2 changes: 0 additions & 2 deletions checks/tasks/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,6 @@ def dane(url, port, chain, task, dane_cb_data, score_none, score_none_bogus, sco
stdin=subprocess.PIPE,
universal_newlines=True,
) as proc:

try:
res = proc.communicate(input=chain_txt, timeout=10)
except subprocess.TimeoutExpired:
Expand Down Expand Up @@ -2573,7 +2572,6 @@ def _check_ciphers(self, test_config, first_cipher_only=False):
while True:
try:
with conn_type.from_conn(self._conn, ciphers=cipher_string, version=tls_version) as new_conn:

# record the cipher details and add the cipher to the
# insufficient or phase out sets.
self._note_conn_details(new_conn)
Expand Down
1 change: 0 additions & 1 deletion checks/tasks/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def _update_hof():
mail = sorted(mail, key=lambda x: x["timestamp"], reverse=True)

for data, red_id in ((champions, redis_id.hof_champions), (web, redis_id.hof_web), (mail, redis_id.hof_mail)):

cached_data = {"date": None, "count": 0, "data": data}
if cached_data["data"]:
cached_data["date"] = cached_data["data"][0]["timestamp"]
Expand Down
1 change: 0 additions & 1 deletion interface/batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@
)

if settings.INTERNET_NL_CHECK_SUPPORT_MAIL:

REPORT_METADATA_MAIL_MAP.append(
{
"name": "mail_auth",
Expand Down
1 change: 0 additions & 1 deletion interface/views/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ def network_ipv4(request, test_id: int = 0):

@jsonp
def network_resolver(request, test_id: int = 0):

# Overwrite the test_id using data from django-hosts.
if hasattr(request, "test_id"):
test_id = request.test_id
Expand Down
1 change: 0 additions & 1 deletion internetnl/test/test_settings_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def test_get_boolean_env_set_false(monkeypatch):


def test_remove_sentry_pii():

mock_event_regular = {
"exception": {
"values": [
Expand Down
1 change: 0 additions & 1 deletion tests/unittests/test_tasks_rpki.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def setUp(self) -> None:

@override_settings(ROUTINATOR_URL="https://example.net/api/v1/validity")
def test_do_rpki(self):

for domain, expected_result in BEACONS.items():
with self.subTest(f"{domain}"):
for asn, prefix in expected_result["routes"]:
Expand Down

0 comments on commit 3433a5c

Please sign in to comment.