Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Feb 28, 2024
1 parent 43ec7e4 commit 01b82d1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@
from opentelemetry.semconv.model.utils import ID_RE
from opentelemetry.semconv.templating.markdown.options import MarkdownOptions

_OPENTELEMETRY_IO_SPEC_URL = "https://opentelemetry.io/docs/specs/"
_REQUIREMENT_LEVEL_URL = (
"https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/"
_OPENTELEMETRY_IO_SPEC_URL + "semconv/general/attribute-requirement-level/"
)

_SEMANTIC_CONVENTIONS_STABILITY_URL = (
"https://opentelemetry.io/docs/specs/otel/versioning-and-stability/#semantic-conventions-stability"
_OPENTELEMETRY_IO_SPEC_URL
+ "otel/versioning-and-stability/#semantic-conventions-stability"
)


Expand Down Expand Up @@ -544,9 +546,9 @@ def _render_stability(
):
if item.deprecated:
return self.options.deprecated_md_snippet(item.deprecated)
elif item.stability == StabilityLevel.STABLE:
if item.stability == StabilityLevel.STABLE:
return self.options.stable_md_snippet()
elif item.stability == StabilityLevel.EXPERIMENTAL:
if item.stability == StabilityLevel.EXPERIMENTAL:
return self.options.experimental_md_snippet()

raise ValueError(f"Unknown stability level {item.stability}")

0 comments on commit 01b82d1

Please sign in to comment.