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

[DO NOT MERGE] Ruff Test #535

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/internal/tests/test_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def generate_random_totals(
"m": misses,
"c": coverage,
"C": complexity,
"N": complexity_total
"N": complexity_total,
# Not currenly used: diff, files, sessions, branches, methods
}
return totals
Expand Down
1 change: 0 additions & 1 deletion api/shared/compare/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def get_misses_count(self, impacted_file: ImpactedFile) -> serializers.IntegerFi


class ImpactedFilesComparisonSerializer(ComparisonSerializer):

files = serializers.SerializerMethodField()
state = serializers.SerializerMethodField()

Expand Down
1 change: 0 additions & 1 deletion billing/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = []
Expand Down
2 changes: 1 addition & 1 deletion billing/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _send_event(self, payload):
)
},
data=payload,
format="json"
format="json",
)

def test_invoice_payment_succeeded_sets_owner_delinquent_false(self):
Expand Down
1 change: 0 additions & 1 deletion billing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def subscription_schedule_updated(self, schedule):
)

def subscription_schedule_released(self, schedule):

subscription = stripe.Subscription.retrieve(schedule["released_subscription"])
owner = Owner.objects.get(ownerid=subscription.metadata.obo_organization)
requesting_user_id = subscription.metadata.obo
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = []
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0002_auto_20210817_1346.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0004_pull_user_provided_base_sha"),
("codecov_auth", "0001_initial"),
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0003_auto_20210924_1003.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Migration(migrations.Migration):

dependencies = [("codecov_auth", "0002_auto_20210817_1346")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0004_auto_20210930_1429.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("codecov_auth", "0003_auto_20210924_1003")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0006_auto_20211123_1535.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [("codecov_auth", "0005_auto_20211029_1709")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0007_auto_20211129_1228.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [("codecov_auth", "0006_auto_20211123_1535")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0008_auto_20220119_1811.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [("codecov_auth", "0007_auto_20211129_1228")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0009_auto_20220511_1313.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

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


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0009_auto_20220511_1313"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0012_auto_20220531_1452.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0011_new_enterprise_plans"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0012_auto_20220531_1452"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0013_alter_owner_organizations"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0015_organizationleveltoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0014_alter_repositorytoken_token_type"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0016_alter_owner_admins.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0015_organizationleveltoken"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0016_alter_owner_admins"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0018_usertoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0017_alter_organizationleveltoken_token_type"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0018_usertoken"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0021_owner_max_upload_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0020_ownerprofile_default_org"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0021_owner_max_upload_limit"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0023_auto_20230214_1129.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0022_alter_owner_max_upload_limit"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0023_auto_20230214_1129"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0025_owner_stripe_coupon_id"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0027_auto_20230307_1751.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0026_alter_owner_plan_user_count"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0027_auto_20230307_1751"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0028_owner_sentry_user_data_owner_sentry_user_id"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0029_ownerprofile_terms_agreement_and_more"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0031_user_owner_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0030_owner_trial_end_date_owner_trial_start_date"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0032_owner_trial_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0031_user_owner_user"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0033_sentryuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0032_owner_trial_status"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0040_oktauser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0039_alter_owner_uses_invoice"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0042_owner_trial_fired_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0041_auto_20230918_1825"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0042_owner_trial_fired_by"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0043_sync_user_terms_agreement"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0045_remove_ownerprofile_terms_agreement"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0047_auto_20231009_1257.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0046_dedupe_owner_admin_values"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/migrations/0048_githubappinstallation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0047_auto_20231009_1257"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

# BEGIN;
# --
# -- Add field app_id to githubappinstallation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0052_githubappinstallation_app_id_and_more"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("codecov_auth", "0053_ownerinstallationnametousefortask_and_more"),
]
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def test_delete_model(self, delete_mock):

@patch("codecov_auth.admin.admin.ModelAdmin.get_deleted_objects")
def test_confirmation_deleted_objects(self, mocked_deleted_objs):

user_to_delete = OwnerFactory()
deleted_objs = [
'Owner: <a href="/admin/codecov_auth/owner/{}/change/">{};</a>'.format(
Expand Down
1 change: 0 additions & 1 deletion codecov_auth/tests/test_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration0046Test(TestMigrations):

migrate_from = "0045_remove_ownerprofile_terms_agreement"
migrate_to = "0046_dedupe_owner_admin_values"

Expand Down
1 change: 0 additions & 1 deletion codecov_auth/tests/unit/views/test_okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ def test_okta_redirect_to_authorize_invalid_iss(client):
def test_okta_perform_login(
client, mocked_okta_token_request, mocked_validate_id_token, db
):

state = "test-state"
session = client.session
session["okta_oauth_state"] = state
Expand Down
1 change: 0 additions & 1 deletion compare/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [("core", "0004_pull_user_provided_base_sha")]
Expand Down
1 change: 0 additions & 1 deletion compare/migrations/0002_commitcomparison_patch_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [("compare", "0001_initial")]

operations = [
Expand Down