Skip to content

Commit

Permalink
Housekeeping, Sprint 48 (#1008)
Browse files Browse the repository at this point in the history
* Bump ruff from 0.0.256 to 0.0.277

* Bump towncrier from 22.12.0 to 23.6.0

* Bump mypy from 1.3.0 to 1.4.1

* Bump websockets from 10.4 to 11.0.3

* Bump prompt-toolkit from 3.0.28 to 3.0.38

* Bump requests from 2.28.2 to 2.31.0

* Bump typing-extensions from 4.5.0 to 4.7.1

* Bump ruamel-yaml from 0.17.21 to 0.17.32

* re-format utils.py

* revert prompt-toolkit bump
  • Loading branch information
vcidst authored Jul 19, 2023
1 parent 03f129c commit ecbd0ad
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 71 deletions.
147 changes: 83 additions & 64 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ typing-extensions = ">=4.1.1,<5.0.0"
Sanic-Cors = "^2.0.0"
prompt-toolkit = "^3.0,<3.0.29"
"ruamel.yaml" = ">=0.16.5,<0.18.0"
websockets = ">=10.0,<11.0"
websockets = ">=10.0,<12.0"
pluggy = "^1.0.0"

[tool.poetry.dev-dependencies]
Expand All @@ -90,11 +90,11 @@ coveralls = "^3.0.1"
pytest = "^7.4.0"
black = "22.12.0"
questionary = ">=1.5.1,<1.11.0"
towncrier = "^22.8.0"
towncrier = "^23.6.0"
toml = "^0.10.0"
pep440-version-utils = "^0.3.0"
semantic_version = "^2.8.5"
mypy = "^1.3"
mypy = "^1.4"
sanic-testing = "^22.3.0, <22.9.0"

[tool.ruff.pydocstyle]
Expand All @@ -105,5 +105,5 @@ python_functions = "test_"
asyncio_mode = "auto"

[tool.poetry.group.dev.dependencies]
ruff = ">=0.0.256,<0.0.276"
ruff = ">=0.0.256,<0.0.278"
pytest-asyncio = "^0.21.0"
7 changes: 4 additions & 3 deletions rasa_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class Button(dict):

def all_subclasses(cls: Any) -> List[Any]:
"""Returns all known (imported) subclasses of a class."""

return cls.__subclasses__() + [
g for s in cls.__subclasses__() for g in all_subclasses(s)
]
Expand Down Expand Up @@ -233,9 +232,11 @@ def check_version_compatibility(rasa_version: Optional[Text]) -> None:
The version check relies on the version string being formatted as
'x.y.z' and compares whether the numbers x and y are the same for both
rasa and rasa_sdk.
Args:
rasa_version - A string containing the version of rasa that
is making the call to the action server.
Raises:
Warning - The version of rasa version unknown or not compatible with
this version of rasa_sdk.
Expand Down Expand Up @@ -337,8 +338,8 @@ def read_yaml(content: Text, reader_type: Text = "safe") -> Any:
)

yaml_parser = yaml.YAML(typ=reader_type)
yaml_parser.version = YAML_VERSION # type: ignore[assignment]
yaml_parser.preserve_quotes = True # type: ignore[assignment]
yaml_parser.version = YAML_VERSION
yaml_parser.preserve_quotes = True

return yaml_parser.load(content) or {}

Expand Down

0 comments on commit ecbd0ad

Please sign in to comment.