Skip to content

Commit

Permalink
chore: Fix linting issue, add catalog-info
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Nov 12, 2024
1 parent 50ffcda commit 8a346cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file records information about this repo. Its use is described in OEP-55:
# https://open-edx-proposals.readthedocs.io/en/latest/processes/oep-0055-proc-project-maintainers.html

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: "code-annotations"
description: "Tools for annotating code comments, linting, and Django model coverage."
spec:
owner: "bmtcril"
type: "library"
lifecycle: "production"
3 changes: 1 addition & 2 deletions code_annotations/find_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ def _append_model_annotations(self, model_type, model_id, query, model_annotatio
try:
annotation_token = inner_match.group("token")
annotation_data = inner_match.group("data")
except IndexError as error:
# pragma: no cover
except IndexError as error: # pragma: no cover
raise ValueError(
'{}: Could not find "data" or "token" groups. Found: {}'.format(
self.get_model_id(model_type), inner_match.groupdict()
Expand Down

0 comments on commit 8a346cb

Please sign in to comment.