Browse Source

ref(lint): Fix Typos (#27520)

Marcos Gaeta 3 years ago
parent
commit
c804345086

+ 2 - 2
src/sentry/analytics/event.py

@@ -45,8 +45,8 @@ class Map(Attribute):
                 new_value[attr.name] = attr.extract(getattr(value, attr.name, None))
             items = new_value
         else:
-            # ensure we dont mutate the original
-            # we dont need to deepcopy as if it recurses into another Map it
+            # ensure we don't mutate the original
+            # we don't need to deepcopy as if it recurses into another Map it
             # will once again copy itself
             items = value.copy()
 

+ 1 - 1
src/sentry/api/bases/group.py

@@ -68,7 +68,7 @@ class GroupEndpoint(Endpoint):
         with configure_scope() as scope:
             scope.set_tag("project", group.project_id)
 
-        # we didnt bind context above, so do it now
+        # we didn't bind context above, so do it now
         if not organization:
             bind_organization_context(group.project.organization)
 

+ 1 - 1
src/sentry/api/endpoints/auth_config.py

@@ -30,7 +30,7 @@ class AuthConfigEndpoint(Endpoint, OrganizationMixin):
 
         next_uri = self.get_next_uri(request)
 
-        # we always reset the state on GET so you dont end up at an odd location
+        # we always reset the state on GET so you don't end up at an odd location
         auth.initiate_login(request, next_uri)
 
         # Auth login verifies the test cookie is set

+ 1 - 1
src/sentry/api/endpoints/monitor_checkin_details.py

@@ -80,7 +80,7 @@ class MonitorCheckInDetailsEndpoint(Endpoint):
         :pparam string checkin_id: the id of the check-in.
         :auth: required
         """
-        # we dont allow read permission with DSNs
+        # we don't allow read permission with DSNs
         if isinstance(request.auth, ProjectKey):
             return self.respond(status=401)
 

+ 1 - 1
src/sentry/api/endpoints/monitor_checkins.py

@@ -31,7 +31,7 @@ class MonitorCheckInsEndpoint(MonitorEndpoint):
         :pparam string monitor_id: the id of the monitor.
         :auth: required
         """
-        # we dont allow read permission with DSNs
+        # we don't allow read permission with DSNs
         if isinstance(request.auth, ProjectKey):
             return self.respond(status=401)
 

+ 2 - 2
src/sentry/api/endpoints/organization_events_facets_performance.py

@@ -254,7 +254,7 @@ def query_tag_data(
         counts = [r["count"] for r in tag_data["data"]]
         aggregates = [r["aggregate"] for r in tag_data["data"]]
 
-        # Return early to avoid doing more queries with 0 count transactions or aggregates for columns that dont exist
+        # Return early to avoid doing more queries with 0 count transactions or aggregates for columns that don't exist
         if counts[0] == 0 or aggregates[0] is None:
             return None
     if not tag_data["data"][0]:
@@ -320,7 +320,7 @@ def query_top_tags(
 
         counts = [r["count"] for r in tag_data["data"]]
 
-        # Return early to avoid doing more queries with 0 count transactions or aggregates for columns that dont exist
+        # Return early to avoid doing more queries with 0 count transactions or aggregates for columns that don't exist
         if counts[0] == 0:
             return None
     if not tag_data["data"]:

+ 1 - 1
src/sentry/api/endpoints/project_user_reports.py

@@ -30,7 +30,7 @@ class ProjectUserReportsEndpoint(ProjectEndpoint, EnvironmentMixin):
         :pparam string project_slug: the slug of the project.
         :auth: required
         """
-        # we dont allow read permission with DSNs
+        # we don't allow read permission with DSNs
         if isinstance(request.auth, ProjectKey):
             return self.respond(status=401)
 

+ 1 - 1
src/sentry/api/serializers/models/user.py

@@ -168,7 +168,7 @@ class DetailedUserSerializer(UserSerializer):
 
     def serialize(self, obj, attrs, user):
         d = super().serialize(obj, attrs, user)
-        # XXX(dcramer): we dont use is_active_superuser here as we simply
+        # XXX(dcramer): we don't use is_active_superuser here as we simply
         # want to tell the UI that we're an authenticated superuser, and
         # for requests that require an *active* session, they should prompt
         # on-demand. This ensures things like links to the Sentry admin can

+ 1 - 1
src/sentry/api/validators/__init__.py

@@ -1,4 +1,4 @@
-# XXX(dcramer): we dont use rest framework's serializers module for actual serialization,
+# XXX(dcramer): we don't use rest framework's serializers module for actual serialization,
 # but rather we use it for validation. Consider this the appropriate place to put these
 # components going forward, though many live in sentry/api/serializers/rest_framework for
 # legacy reasons.

+ 1 - 1
src/sentry/auth/helper.py

@@ -432,7 +432,7 @@ class AuthIdentityHandler:
             else:
                 # force them to create a new account
                 acting_user = None
-        # without a usable password they cant login, so let's clear the acting_user
+        # without a usable password they can't login, so let's clear the acting_user
         elif acting_user and not acting_user.has_usable_password():
             acting_user = None
 

Some files were not shown because too many files changed in this diff