1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "rq"
description = "RQ is a simple, lightweight, library for creating background jobs, and processing them."
readme = "README.md"
license = "BSD-2-Clause"
maintainers = [{ name = "Selwin Ong" }]
authors = [
{ name = "Selwin Ong", email = "selwin.ong@gmail.com" },
{ name = "Vincent Driessen", email = "vincent@3rdcloud.com" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Monitoring",
"Topic :: System :: Systems Administration",
]
dynamic = ["version"]
dependencies = ["click>=5", "redis>=3.5,!=6.0.0"]
urls.changelog = "https://github.com/rq/rq/blob/master/CHANGES.md"
urls.documentation = "https://python-rq.org/docs/"
urls.homepage = "https://python-rq.org/"
urls.repository = "https://github.com/rq/rq/"
scripts.rq = "rq.cli:main"
scripts.rqinfo = "rq.cli:info" # TODO [v2]: Remove
scripts.rqworker = "rq.cli:worker" # TODO [v2]: Remove
[dependency-groups]
dev = [
"coverage>=7.6.1",
"mypy>=1.14.1",
"packaging>=24.2",
"psutil>=7",
"pytest>=8.3.5",
"pytest-cov>=5",
"ruff>=0.9.9",
"tox>=4.24.1",
"types-greenlet>=3.1.0.20241221",
"types-redis>=4.6.0.20241004",
]
[tool.hatch.version]
path = "rq/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/rq",
"/tests",
"CHANGES.md",
"LICENSE",
"pyproject.toml",
"README.md",
"requirements.txt",
"tox.ini",
]
[tool.hatch.envs.default]
installer = "uv"
[tool.hatch.envs.test]
dependencies = [
"coverage",
"mypy",
"packaging",
"psutil",
"pytest",
"pytest-cov",
"ruff",
"tox",
"types-greenlet",
"types-redis",
]
[tool.hatch.envs.test.scripts]
cov = "pytest --cov=rq --cov-config=.coveragerc --cov-report=xml {args:tests}"
typing = "mypy --enable-incomplete-feature=Unpack rq"
[tool.ruff]
target-version = "py38"
# Set what ruff should check for.
# See https://beta.ruff.rs/docs/rules/ for a list of rules.
line-length = 120
format.quote-style = "single"
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes errors
"I", # import sorting
"W", # pycodestyle warnings
]
lint.isort.known-first-party = ["rq"]
lint.isort.section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.mypy]
allow_redefinition = 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 = "setproctitle.*"
ignore_missing_imports = true
[tool.pyright]
reportOptionalMemberAccess = false
reportOptionalOperand = false
|