Skip to content

Commit 248fa6c

Browse files
committed
chore: Fix linting issue, add catalog-info
1 parent 6aac6b7 commit 248fa6c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

catalog-info.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file records information about this repo. Its use is described in OEP-55:
2+
# https://open-edx-proposals.readthedocs.io/en/latest/processes/oep-0055-proc-project-maintainers.html
3+
4+
apiVersion: backstage.io/v1alpha1
5+
kind: Component
6+
metadata:
7+
name: "code-annotations"
8+
description: "Tools for annotating code comments, linting, and Django model coverage."
9+
spec:
10+
owner: "bmtcril"
11+
type: "library"
12+
lifecycle: "production"

code_annotations/find_django.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ def _append_model_annotations(self, model_type, model_id, query, model_annotatio
146146
try:
147147
annotation_token = inner_match.group("token")
148148
annotation_data = inner_match.group("data")
149-
except IndexError as error:
150-
# pragma: no cover
149+
except IndexError as error: # pragma: no cover
151150
raise ValueError(
152151
'{}: Could not find "data" or "token" groups. Found: {}'.format(
153152
self.get_model_id(model_type), inner_match.groupdict()

0 commit comments

Comments
 (0)