Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping: deps upgrade #12051

Merged
merged 16 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ jobs:
shell: bash

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7
with:
version: v0.5.1
driver: docker
Expand Down Expand Up @@ -913,7 +913,7 @@ jobs:
shell: bash

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7
id: buildx
with:
version: v0.5.1
Expand Down
7,626 changes: 3,864 additions & 3,762 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ regex = ">=2020.6,<2022.11"
joblib = ">=0.15.1,<1.3.0"
sentry-sdk = ">=0.17.0,<1.15.0"
aio-pika = ">=6.7.1,<9.0.0"
aiogram = "<2.24"
aiogram = "~2.25.1"
Shmuma marked this conversation as resolved.
Show resolved Hide resolved
typing-extensions = ">=4.1.1,<5.0.0"
typing-utils = "^0.1.0"
tarsafe = "^0.0.3"
Expand Down Expand Up @@ -180,7 +180,7 @@ pytest = "^7.1.3"
freezegun = "^1.0.0"
responses = "^0.22.0"
aioresponses = "^0.7.2"
moto = "~=4.0.8"
moto = "~=4.1.2"
fakeredis = "^2.2.0"
mongomock = "^4.1.2"
black = "^22.10.0"
Expand All @@ -194,12 +194,12 @@ toml = "^0.10.0"
pep440-version-utils = "^0.3.0"
pydoc-markdown = "^4.5.1"
pytest-timeout = "^2.1.0"
mypy = "^0.981"
mypy = "^1.0.0"
bandit = "^1.6.3"
types-pytz = "^2022.1.1"
types-python-dateutil = "^2.8.12"
types-requests = "^2.25.0"
types-setuptools = "^65.6.0"
types-setuptools = "^67.2.0"
memory-profiler = "^0.61.0"
psutil = "^5.8.0"
mypy-extensions = "^0.4.3"
Expand Down
4 changes: 2 additions & 2 deletions rasa/engine/storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def from_model_archive(
"""
...

@classmethod
@classmethod # type: ignore[empty-body]
Shmuma marked this conversation as resolved.
Show resolved Hide resolved
def metadata_from_archive(
cls, model_archive_path: Union[Text, Path]
) -> ModelMetadata:
Expand Down Expand Up @@ -104,7 +104,7 @@ def read_from(self, resource: Resource) -> Generator[Path, None, None]:
"""
...

def create_model_package(
def create_model_package( # type: ignore[empty-body]
Shmuma marked this conversation as resolved.
Show resolved Hide resolved
self,
model_archive_path: Union[Text, Path],
model_configuration: GraphModelConfiguration,
Expand Down
2 changes: 1 addition & 1 deletion rasa/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def refine_cli(
"""Customizable hook for adding CLI commands."""


@hookspec # type: ignore[misc]
@hookspec # type: ignore[misc, empty-body]
def get_version_info() -> Tuple[Text, Text]:
"""Hook specification for getting plugin version info."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def process_user_utterance(
# of `rasa.shared`
for predicted in user_utterance.predicted_entities: # type: ignore[attr-defined] # noqa: E501
if predicted["start"] == entity["start"]:
commented_entity = user_utterance.inline_comment_for_entity( # type: ignore[attr-defined] # noqa: E501
commented_entity = user_utterance.inline_comment_for_entity( # noqa: E501
predicted, entity
)
if commented_entity:
Expand Down Expand Up @@ -247,7 +247,7 @@ def process_user_utterance(
if hasattr(user_utterance, "inline_comment"):
# FIXME: to fix this type issue, WronglyClassifiedUserUtterance needs to
# be imported but it's currently outside of `rasa.shared`
comment = user_utterance.inline_comment( # type: ignore[attr-defined]
comment = user_utterance.inline_comment(
force_comment_generation=not entities
)
if comment:
Expand Down Expand Up @@ -291,7 +291,7 @@ def process_action(action: ActionExecuted) -> Optional[OrderedDict]:
if hasattr(action, "inline_comment"):
# FIXME: to fix this type issue, WarningPredictedAction needs to
# be imported but it's currently outside of `rasa.shared`
comment = action.inline_comment() # type: ignore[attr-defined]
comment = action.inline_comment()
if KEY_ACTION in result and comment:
result.yaml_add_eol_comment(comment, KEY_ACTION)
elif KEY_BOT_END_TO_END_MESSAGE in result and comment:
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ disallow_untyped_calls = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
disallow_untyped_decorators = True
# FIXME: should be switch to True (default) after fixing implicit Optional in the codebase
Shmuma marked this conversation as resolved.
Show resolved Hide resolved
no_implicit_optional=False
# FIXME: working our way towards removing these
# see https://github.com/RasaHQ/rasa/pull/6470
# the list below is sorted by the number of errors for each error code, in decreasing order
Expand Down