diff --git a/checks/migrations/0001_initial.py b/checks/migrations/0001_initial.py index f1822be1f..2587c2c49 100644 --- a/checks/migrations/0001_initial.py +++ b/checks/migrations/0001_initial.py @@ -9,7 +9,6 @@ class Migration(migrations.Migration): - initial = True dependencies = [] diff --git a/checks/migrations/0002_upgrade_some_TextFields_to_ListFields.py b/checks/migrations/0002_upgrade_some_TextFields_to_ListFields.py index 1c6fe50a6..510b57d31 100644 --- a/checks/migrations/0002_upgrade_some_TextFields_to_ListFields.py +++ b/checks/migrations/0002_upgrade_some_TextFields_to_ListFields.py @@ -6,7 +6,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0001_initial"), ] diff --git a/checks/migrations/0003_summer.py b/checks/migrations/0003_summer.py index 6d1f44af6..beb401021 100644 --- a/checks/migrations/0003_summer.py +++ b/checks/migrations/0003_summer.py @@ -7,7 +7,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0002_upgrade_some_TextFields_to_ListFields"), ] diff --git a/checks/migrations/0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views.py b/checks/migrations/0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views.py index 5f4822d63..690c993ef 100644 --- a/checks/migrations/0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views.py +++ b/checks/migrations/0004_APIv2__add_technical_file__reverse_lookup_names__remove_custom_views.py @@ -16,7 +16,6 @@ def fix_unused_v4_fields(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("checks", "0003_summer"), ] diff --git a/checks/migrations/0005_autoconf_db_options.py b/checks/migrations/0005_autoconf_db_options.py index 0a00dbe0a..8f9c489a8 100644 --- a/checks/migrations/0005_autoconf_db_options.py +++ b/checks/migrations/0005_autoconf_db_options.py @@ -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"), ] diff --git a/checks/migrations/0006_mailtestauth_dmarc_record_org_domain.py b/checks/migrations/0006_mailtestauth_dmarc_record_org_domain.py index 7089fb65c..dc0046f2e 100644 --- a/checks/migrations/0006_mailtestauth_dmarc_record_org_domain.py +++ b/checks/migrations/0006_mailtestauth_dmarc_record_org_domain.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0005_autoconf_db_options"), ] diff --git a/checks/migrations/0007_null_mx.py b/checks/migrations/0007_null_mx.py index 64c87f458..f97988de9 100644 --- a/checks/migrations/0007_null_mx.py +++ b/checks/migrations/0007_null_mx.py @@ -7,7 +7,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0006_mailtestauth_dmarc_record_org_domain"), ] diff --git a/checks/migrations/0008_django_upgrade.py b/checks/migrations/0008_django_upgrade.py index c13386494..eb3cdc4b7 100644 --- a/checks/migrations/0008_django_upgrade.py +++ b/checks/migrations/0008_django_upgrade.py @@ -7,7 +7,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0007_null_mx"), ] diff --git a/checks/migrations/0009_rpki.py b/checks/migrations/0009_rpki.py index e49c0504e..7f346a81b 100644 --- a/checks/migrations/0009_rpki.py +++ b/checks/migrations/0009_rpki.py @@ -7,7 +7,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0008_django_upgrade"), ] diff --git a/checks/migrations/0010_add_securitytxt.py b/checks/migrations/0010_add_securitytxt.py index 84fc759e4..48c2b15bb 100644 --- a/checks/migrations/0010_add_securitytxt.py +++ b/checks/migrations/0010_add_securitytxt.py @@ -5,7 +5,6 @@ class Migration(migrations.Migration): - dependencies = [ ("checks", "0009_rpki"), ] diff --git a/checks/tasks/ipv6.py b/checks/tasks/ipv6.py index 31ff50781..f990726ee 100644 --- a/checks/tasks/ipv6.py +++ b/checks/tasks/ipv6.py @@ -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: diff --git a/checks/tasks/rpki.py b/checks/tasks/rpki.py index 8828bb65f..134224413 100644 --- a/checks/tasks/rpki.py +++ b/checks/tasks/rpki.py @@ -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, diff --git a/checks/tasks/tls.py b/checks/tasks/tls.py index 487254ed4..883894308 100644 --- a/checks/tasks/tls.py +++ b/checks/tasks/tls.py @@ -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: @@ -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) diff --git a/checks/tasks/update.py b/checks/tasks/update.py index fb87fd14c..d287d9e89 100644 --- a/checks/tasks/update.py +++ b/checks/tasks/update.py @@ -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"] diff --git a/interface/batch/__init__.py b/interface/batch/__init__.py index 9b3d24aa1..79878b7e8 100644 --- a/interface/batch/__init__.py +++ b/interface/batch/__init__.py @@ -485,7 +485,6 @@ ) if settings.INTERNET_NL_CHECK_SUPPORT_MAIL: - REPORT_METADATA_MAIL_MAP.append( { "name": "mail_auth", diff --git a/interface/views/connection.py b/interface/views/connection.py index b786b960d..fc63a340c 100644 --- a/interface/views/connection.py +++ b/interface/views/connection.py @@ -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 diff --git a/internetnl/test/test_settings_utils.py b/internetnl/test/test_settings_utils.py index 3999d5397..34603de0a 100644 --- a/internetnl/test/test_settings_utils.py +++ b/internetnl/test/test_settings_utils.py @@ -30,7 +30,6 @@ def test_get_boolean_env_set_false(monkeypatch): def test_remove_sentry_pii(): - mock_event_regular = { "exception": { "values": [ diff --git a/tests/unittests/test_tasks_rpki.py b/tests/unittests/test_tasks_rpki.py index 4096d9953..52ebfe94b 100644 --- a/tests/unittests/test_tasks_rpki.py +++ b/tests/unittests/test_tasks_rpki.py @@ -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"]: