code-annotations 2.0.0__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. {code_annotations-2.0.0 → code_annotations-2.1.0}/CHANGELOG.rst +5 -0
  2. {code_annotations-2.0.0 → code_annotations-2.1.0}/PKG-INFO +8 -3
  3. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/__init__.py +1 -1
  4. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/config/openedx_events_annotations.yaml +2 -1
  5. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/sphinx/extensions/openedx_events.py +5 -0
  6. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/PKG-INFO +8 -3
  7. {code_annotations-2.0.0 → code_annotations-2.1.0}/LICENSE.txt +0 -0
  8. {code_annotations-2.0.0 → code_annotations-2.1.0}/MANIFEST.in +0 -0
  9. {code_annotations-2.0.0 → code_annotations-2.1.0}/NOTICE.txt +0 -0
  10. {code_annotations-2.0.0 → code_annotations-2.1.0}/README.rst +0 -0
  11. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/annotation_errors.py +0 -0
  12. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/base.py +0 -0
  13. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/cli.py +0 -0
  14. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/config/__init__.py +0 -0
  15. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/config/feature_toggle_annotations.yaml +0 -0
  16. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/config/setting_annotations.yaml +0 -0
  17. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/sphinx/extensions/__init__.py +0 -0
  18. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/sphinx/extensions/base.py +0 -0
  19. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/sphinx/extensions/featuretoggles.py +0 -0
  20. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/contrib/sphinx/extensions/settings.py +0 -0
  21. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/exceptions.py +0 -0
  22. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/extensions/__init__.py +0 -0
  23. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/extensions/base.py +0 -0
  24. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/extensions/javascript.py +0 -0
  25. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/extensions/python.py +0 -0
  26. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/find_django.py +0 -0
  27. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/find_static.py +0 -0
  28. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/generate_docs.py +0 -0
  29. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations/helpers.py +0 -0
  30. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/SOURCES.txt +0 -0
  31. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/dependency_links.txt +0 -0
  32. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/entry_points.txt +0 -0
  33. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/not-zip-safe +0 -0
  34. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/requires.txt +2 -2
  35. {code_annotations-2.0.0 → code_annotations-2.1.0}/code_annotations.egg-info/top_level.txt +0 -0
  36. {code_annotations-2.0.0 → code_annotations-2.1.0}/requirements/base.in +0 -0
  37. {code_annotations-2.0.0 → code_annotations-2.1.0}/setup.cfg +0 -0
  38. {code_annotations-2.0.0 → code_annotations-2.1.0}/setup.py +0 -0
  39. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_base.py +0 -0
  40. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_django_coverage.py +0 -0
  41. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_django_generate_safelist.py +0 -0
  42. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_django_list_local_models.py +0 -0
  43. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_find_django.py +0 -0
  44. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_find_static.py +0 -0
  45. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_generate_docs.py +0 -0
  46. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_search.py +0 -0
  47. {code_annotations-2.0.0 → code_annotations-2.1.0}/tests/test_sphinx.py +0 -0
@@ -14,6 +14,11 @@ Change Log
14
14
  Unreleased
15
15
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16
16
 
17
+ [2.1.0] - 2024-12-12
18
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
+
20
+ * Add support for optional event warning for in-line annotation.
21
+
17
22
  [2.0.0] - 2024-10-18
18
23
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-annotations
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Extensible tools for parsing annotations in codebases
5
5
  Home-page: https://github.com/openedx/code-annotations
6
6
  Author: edX
@@ -23,9 +23,9 @@ License-File: LICENSE.txt
23
23
  License-File: NOTICE.txt
24
24
  Requires-Dist: python-slugify
25
25
  Requires-Dist: stevedore
26
- Requires-Dist: Jinja2
27
- Requires-Dist: click
28
26
  Requires-Dist: pyyaml
27
+ Requires-Dist: click
28
+ Requires-Dist: Jinja2
29
29
  Provides-Extra: django
30
30
  Requires-Dist: Django>=4.2; extra == "django"
31
31
 
@@ -129,6 +129,11 @@ Change Log
129
129
  Unreleased
130
130
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131
131
 
132
+ [2.1.0] - 2024-12-12
133
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
+
135
+ * Add support for optional event warning for in-line annotation.
136
+
132
137
  [2.0.0] - 2024-10-18
133
138
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
139
 
@@ -2,4 +2,4 @@
2
2
  Extensible tools for parsing annotations in codebases.
3
3
  """
4
4
 
5
- __version__ = '2.0.0'
5
+ __version__ = '2.1.0'
@@ -6,12 +6,13 @@ safelist_path: .annotation_safe_list.yml
6
6
  coverage_target: 100.0
7
7
  annotations:
8
8
  feature_toggle:
9
- # See annotation format documentation: https://edx-toggles.readthedocs.io/en/latest/how_to/documenting_new_feature_toggles.html
9
+ # See annotation format documentation: https://docs.openedx.org/projects/openedx-events/en/latest/reference/in-line-code-annotations-for-an-event.html
10
10
  - ".. event_type:":
11
11
  - ".. event_name:":
12
12
  - ".. event_description:":
13
13
  - ".. event_data:":
14
14
  - ".. event_key_field:":
15
+ - ".. event_warning:":
15
16
  extensions:
16
17
  python:
17
18
  - py
@@ -118,6 +118,11 @@ class OpenedxEvents(SphinxDirective):
118
118
  f" {event['line_number']})"
119
119
  )
120
120
 
121
+ if event.get(".. event_warning:") not in (None, "None", "n/a", "N/A"):
122
+ event_section += nodes.warning(
123
+ "", nodes.paragraph("", event[".. event_warning:"]), ids=[f"warning-{event_name}"]
124
+ )
125
+
121
126
  subject_header += event_section
122
127
 
123
128
  if domain_header:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-annotations
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Extensible tools for parsing annotations in codebases
5
5
  Home-page: https://github.com/openedx/code-annotations
6
6
  Author: edX
@@ -23,9 +23,9 @@ License-File: LICENSE.txt
23
23
  License-File: NOTICE.txt
24
24
  Requires-Dist: python-slugify
25
25
  Requires-Dist: stevedore
26
- Requires-Dist: Jinja2
27
- Requires-Dist: click
28
26
  Requires-Dist: pyyaml
27
+ Requires-Dist: click
28
+ Requires-Dist: Jinja2
29
29
  Provides-Extra: django
30
30
  Requires-Dist: Django>=4.2; extra == "django"
31
31
 
@@ -129,6 +129,11 @@ Change Log
129
129
  Unreleased
130
130
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131
131
 
132
+ [2.1.0] - 2024-12-12
133
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
+
135
+ * Add support for optional event warning for in-line annotation.
136
+
132
137
  [2.0.0] - 2024-10-18
133
138
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
139
 
@@ -1,8 +1,8 @@
1
1
  python-slugify
2
2
  stevedore
3
- Jinja2
4
- click
5
3
  pyyaml
4
+ click
5
+ Jinja2
6
6
 
7
7
  [django]
8
8
  Django>=4.2