Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.coverage
.gitignore
.idea
.mypy_cache
.ruff_cache
.vscode
.git
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ __pycache__/*
.idea
.DS_Store
.env
.mypy_cache
.pytest_cache
.ruff_cache
.coverage
Expand Down
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ lint:
uv run eof-fixer .
uv run ruff format
uv run ruff check --fix
uv run mypy .
uv run ty check

lint-ci:
uv run eof-fixer . --check
uv run ruff format --check
uv run ruff check --no-fix
uv run mypy .
uv run ty check

publish:
rm -rf dist
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Redis Timers

[![MyPy Strict](https://img.shields.io/badge/mypy-strict-blue)](https://mypy.readthedocs.io/en/stable/getting_started.html#strict-mode-and-configuration)
[![Supported versions](https://img.shields.io/pypi/pyversions/redis-timers.svg)](https://pypi.python.org/pypi/redis-timers)
[![downloads](https://img.shields.io/pypi/dm/redis-timers.svg)](https://pypistats.org/packages/redis-timers)
[![GitHub stars](https://img.shields.io/github/stars/modern-python/redis-timers)](https://github.com/modern-python/redis-timers/stargazers)
Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dev = [
lint = [
# linters
"ruff",
"mypy",
"ty",
"eof-fixer",
# stubs
"types-redis",
Expand All @@ -36,10 +36,6 @@ build-backend = "uv_build"
module-name = "redis_timers"
module-root = ""

[tool.mypy]
python_version = "3.13"
strict = true

[tool.ruff]
fix = true
unsafe-fixes = true
Expand Down
4 changes: 2 additions & 2 deletions redis_timers/timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Timers:
def __init__(
self,
*,
redis_client: Redis, # type: ignore[type-arg]
redis_client: Redis,
context: dict[str, typing.Any],
routers: list[Router] | None = None,
) -> None:
Expand Down Expand Up @@ -64,7 +64,7 @@ async def fetch_ready_timers(self, timestamp: datetime.datetime) -> list[str]:
)

async def _handle_one_timer(self, timer_key: str) -> None:
topic = timer_key.split(settings.TIMERS_SEPARATOR)[0]
topic = timer_key.split(settings.TIMERS_SEPARATOR, maxsplit=1)[0]
handler = self.handlers_by_topics.get(topic)
if not handler:
logger.error(f"Handler is not found, {timer_key=}")
Expand Down
Loading