Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitvinnakota-codecov committed May 13, 2024
1 parent 2fa6dff commit 39b7d40
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 38 deletions.
15 changes: 5 additions & 10 deletions codecov_auth/commands/owner/owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,20 @@
from .interactors.create_user_token import CreateUserTokenInteractor
from .interactors.delete_session import DeleteSessionInteractor
from .interactors.fetch_owner import FetchOwnerInteractor
from .interactors.get_is_current_user_an_admin import \
GetIsCurrentUserAnAdminInteractor
from .interactors.get_is_current_user_an_admin import GetIsCurrentUserAnAdminInteractor
from .interactors.get_org_upload_token import GetOrgUploadToken
from .interactors.get_uploads_number_per_user import \
GetUploadsNumberPerUserInteractor
from .interactors.get_uploads_number_per_user import GetUploadsNumberPerUserInteractor
from .interactors.is_syncing import IsSyncingInteractor
from .interactors.onboard_user import OnboardUserInteractor
from .interactors.regenerate_org_upload_token import \
RegenerateOrgUploadTokenInteractor
from .interactors.regenerate_org_upload_token import RegenerateOrgUploadTokenInteractor
from .interactors.revoke_user_token import RevokeUserTokenInteractor
from .interactors.save_terms_agreement import SaveTermsAgreementInteractor
from .interactors.set_yaml_on_owner import SetYamlOnOwnerInteractor
from .interactors.start_trial import StartTrialInteractor
from .interactors.trigger_sync import TriggerSyncInteractor
from .interactors.update_default_organization import \
UpdateDefaultOrganizationInteractor
from .interactors.update_default_organization import UpdateDefaultOrganizationInteractor
from .interactors.update_profile import UpdateProfileInteractor
from .interactors.update_self_hosted_settings import \
UpdateSelfHostedSettingsInteractor
from .interactors.update_self_hosted_settings import UpdateSelfHostedSettingsInteractor


class OwnerCommands(BaseCommand):
Expand Down
58 changes: 35 additions & 23 deletions graphql_api/types/mutation/mutation.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,50 @@
from ariadne import MutationType

from graphql_api.types.mutation.start_trial.start_trial import \
resolve_start_trial
from graphql_api.types.mutation.start_trial.start_trial import resolve_start_trial

from .activate_measurements import (error_activate_measurements,
resolve_activate_measurements)
from .activate_measurements import (
error_activate_measurements,
resolve_activate_measurements,
)
from .cancel_trial import error_cancel_trial, resolve_cancel_trial
from .create_api_token import error_create_api_token, resolve_create_api_token
from .create_user_token import (error_create_user_token,
resolve_create_user_token)
from .create_user_token import error_create_user_token, resolve_create_user_token
from .delete_component_measurements import (
error_delete_component_measurements, resolve_delete_component_measurements)
error_delete_component_measurements,
resolve_delete_component_measurements,
)
from .delete_flag import error_delete_flag, resolve_delete_flag
from .delete_session import error_delete_session, resolve_delete_session
from .onboard_user import error_onboard_user, resolve_onboard_user
from .regenerate_org_upload_token import (error_generate_org_upload_token,
resolve_regenerate_org_upload_token)
from .regenerate_repository_token import (error_regenerate_repository_token,
resolve_regenerate_repository_token)
from .revoke_user_token import (error_revoke_user_token,
resolve_revoke_user_token)
from .save_sentry_state import (error_save_sentry_state,
resolve_save_sentry_state)
from .save_terms_agreement import (error_save_terms_agreement,
resolve_save_terms_agreement)
from .regenerate_org_upload_token import (
error_generate_org_upload_token,
resolve_regenerate_org_upload_token,
)
from .regenerate_repository_token import (
error_regenerate_repository_token,
resolve_regenerate_repository_token,
)
from .revoke_user_token import error_revoke_user_token, resolve_revoke_user_token
from .save_sentry_state import error_save_sentry_state, resolve_save_sentry_state
from .save_terms_agreement import (
error_save_terms_agreement,
resolve_save_terms_agreement,
)
from .set_yaml_on_owner import error_set_yaml_error, resolve_set_yaml_on_owner
from .start_trial import error_start_trial, resolve_start_trial
from .sync_with_git_provider import (error_sync_with_git_provider,
resolve_sync_with_git_provider)
from .update_default_organization import (error_update_default_organization,
resolve_update_default_organization)
from .sync_with_git_provider import (
error_sync_with_git_provider,
resolve_sync_with_git_provider,
)
from .update_default_organization import (
error_update_default_organization,
resolve_update_default_organization,
)
from .update_profile import error_update_profile, resolve_update_profile
from .update_self_hosted_settings import (error_update_self_hosted_settings,
resolve_update_self_hosted_settings)
from .update_self_hosted_settings import (
error_update_self_hosted_settings,
resolve_update_self_hosted_settings,
)

mutation_bindable = MutationType()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from graphql_api.helpers.ariadne import ariadne_load_local_graphql

from .update_self_hosted_settings import (error_update_self_hosted_settings,
resolve_update_self_hosted_settings)
from .update_self_hosted_settings import (
error_update_self_hosted_settings,
resolve_update_self_hosted_settings,
)

gql_update_self_hosted_settings = ariadne_load_local_graphql(
__file__, "update_self_hosted_settings.graphql"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from ariadne import UnionType

from codecov_auth.commands.owner import OwnerCommands
from graphql_api.helpers.mutation import (require_authenticated,
resolve_union_error_type,
wrap_error_handling_mutation)
from graphql_api.helpers.mutation import (
require_authenticated,
resolve_union_error_type,
wrap_error_handling_mutation,
)


@wrap_error_handling_mutation
Expand Down

0 comments on commit 39b7d40

Please sign in to comment.