Skip to content

Commit

Permalink
Merge branch 'ci/rtd/no-fail-on-warn' into 'main'
Browse files Browse the repository at this point in the history
CI: Do not treat warnings as errors in RTD

See merge request heka/medkit!244

changelog: CI: Do not treat warnings as errors in RTD
  • Loading branch information
ghisvail committed Nov 28, 2023
2 parents 309973e + b496c32 commit 4a13ebe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ build:
- jupyter-book config sphinx docs/

sphinx:
builder: html
fail_on_warning: true
configuration: docs/conf.py
fail_on_warning: false
16 changes: 4 additions & 12 deletions medkit/core/text/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,14 @@ def run(self, segments: List[Segment]) -> List[Segment]:


class CustomTextOpType(IntEnum):
"""
Enum class listing all supported function types for creating custom text operations
Attributes
----------
CREATE_ONE_TO_N
Takes 1 data item, Return N new data items
EXTRACT_ONE_TO_N
Takes 1 data item, Return N existing data items
FILTER
Takes 1 data item, Returns True/False
"""
"""Supported function types for creating custom text operations."""

CREATE_ONE_TO_N = 1
"""Take 1 data item, return N new data items."""
EXTRACT_ONE_TO_N = 2
"""Take 1 data item, return N existing data items"""
FILTER = 3
"""Take 1 data item, return True or False."""


class _CustomTextOperation(Operation):
Expand Down

0 comments on commit 4a13ebe

Please sign in to comment.