[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "django-rq" dynamic = ["version"] description = "An app that provides django integration for RQ (Redis Queue)" readme = "README.md" license = "MIT" license-files = ["LICENSE.txt"] authors = [{ name = "Selwin Ong", email = "selwin.ong@gmail.com" }] requires-python = ">=3.10" dependencies = ["django>=4.2", "rq>=2.6.1", "redis>=3.5"] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Distributed Computing", "Topic :: System :: Monitoring", "Topic :: System :: Systems Administration", ] [project.optional-dependencies] prometheus = ["prometheus_client >= 0.4.0"] testing = ["pytest>=7.0", "pytest-django>=4.5"] [project.urls] changelog = "https://github.com/rq/django-rq/blob/master/CHANGELOG.md" homepage = "https://python-rq.org/patterns/django/" repository = "https://github.com/rq/django-rq" [tool.hatch.version] path = "django_rq/__init__.py" [tool.hatch.build.targets.sdist] include = ["/django_rq", "/CHANGELOG.md", "/pyproject.toml"] [tool.mypy] allow_redefinition = true check_untyped_defs = true pretty = true show_error_codes = true show_error_context = true warn_redundant_casts = true warn_unused_ignores = true warn_unreachable = true [[tool.mypy.overrides]] module = "django_redis.*" ignore_missing_imports = true [[tool.mypy.overrides]] module = "prometheus_client.*" ignore_missing_imports = true [[tool.mypy.overrides]] module = "redis_cache.*" ignore_missing_imports = true [[tool.mypy.overrides]] module = "rq_scheduler.*" ignore_missing_imports = true [[tool.mypy.overrides]] module = "rq.cron" ignore_missing_imports = true [tool.ruff] target-version = "py39" # Set what ruff should check for. # See https://beta.ruff.rs/docs/rules/ for a list of rules. line-length = 120 format.quote-style = "preserve" lint.select = [ "E", # pycodestyle errors "F", # pyflakes errors "I", # import sorting "W", # pycodestyle warnings, "UP", ] lint.isort.known-first-party = [ "django_rq" ] lint.isort.section-order = [ "future", "standard-library", "third-party", "first-party", "local-folder", ] [tool.pytest.ini_options] DJANGO_SETTINGS_MODULE = "tests.settings" pythonpath = ["."] testpaths = ["tests"] python_files = ["test_*.py", "tests.py"]