From c87ae6618ba24639076cdf14507539566c865521 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Sat, 10 Feb 2024 20:38:16 +0200 Subject: [PATCH] fix other make commands --- Makefile | 6 +++--- cent/__init__.py | 6 ++++++ pyproject.toml | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 1921274..972243a 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,10 @@ test: poetry run pytest -vv tests lint: - ruff . + poetry run ruff . lint-fix: - ruff . --fix + poetry run ruff . --fix lint-ci: - ruff . --output-format=github + poetry run ruff . --output-format=github diff --git a/cent/__init__.py b/cent/__init__.py index b84dd6c..9efcd3d 100644 --- a/cent/__init__.py +++ b/cent/__init__.py @@ -116,4 +116,10 @@ "Node", "Publication", "ClientInfo", + "CentError", + "CentNetworkError", + "CentClientDecodeError", + "CentUnauthorizedError", + "CentAPIError", + "CentTransportError", ) diff --git a/pyproject.toml b/pyproject.toml index 24719da..3a55fc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "cent" version = "5.0.0" -description = "Python library to communicate with Centrifugo v3 HTTP API" +description = "Python library to communicate with Centrifugo v5 HTTP API" authors = ["Alexandr Emelin", "Katant Savelev"] license = "MIT" readme = 'README.md' @@ -80,7 +80,7 @@ ignore = [ [tool.ruff.per-file-ignores] "tests/*" = ["S101", "PT012"] -"cent/proto/centrifugal/*" = ["RUF009", "ARG002", "E501"] +"cent/proto/centrifugal/*" = ["RUF009", "ARG002", "E501", "TCH004"] [tool.mypy] strict = true @@ -117,7 +117,7 @@ module = [ ignore_missing_imports = true [[tool.mypy.overrides]] -module = ["cent.protos.centrifugal.*"] +module = ["cent.proto.centrifugal.*"] ignore_errors = true