Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 requires = ["hatchling"]
3 build-backend = "hatchling.build"
4
5 [project]
6 name = "django-rq"
7 dynamic = ["version"]
8 description = "An app that provides django integration for RQ (Redis Queue)"
9 readme = "README.md"
10 license = "MIT"
11 license-files = ["LICENSE.txt"]
12 authors = [{ name = "Selwin Ong", email = "[email protected]" }]
13 requires-python = ">=3.10"
14 dependencies = ["django>=4.2", "rq>=2.6.1", "redis>=3.5"]
15 classifiers = [
16 "Development Status :: 5 - Production/Stable",
17 "Environment :: Web Environment",
18 "Framework :: Django",
19 "Intended Audience :: Developers",
20 "Intended Audience :: End Users/Desktop",
21 "Intended Audience :: Information Technology",
22 "Intended Audience :: Science/Research",
23 "Intended Audience :: System Administrators",
24 "Operating System :: OS Independent",
25 "Programming Language :: Python",
26 "Programming Language :: Python :: 3 :: Only",
27 "Programming Language :: Python :: 3.10",
28 "Programming Language :: Python :: 3.11",
29 "Programming Language :: Python :: 3.12",
30 "Programming Language :: Python :: 3.13",
31 "Topic :: Internet",
32 "Topic :: Internet :: WWW/HTTP",
33 "Topic :: Scientific/Engineering",
34 "Topic :: Software Development :: Libraries :: Python Modules",
35 "Topic :: System :: Distributed Computing",
36 "Topic :: System :: Monitoring",
37 "Topic :: System :: Systems Administration",
38 ]
39
40 [project.optional-dependencies]
41 prometheus = ["prometheus_client >= 0.4.0"]
42 testing = ["pytest>=7.0", "pytest-django>=4.5"]
43
44 [project.urls]
45 changelog = "https://github.com/rq/django-rq/blob/master/CHANGELOG.md"
46 homepage = "https://python-rq.org/patterns/django/"
47 repository = "https://github.com/rq/django-rq"
48
49 [tool.hatch.version]
50 path = "django_rq/__init__.py"
51
52 [tool.hatch.build.targets.sdist]
53 include = ["/django_rq", "/CHANGELOG.md", "/pyproject.toml"]
54
55 [tool.mypy]
56 allow_redefinition = true
57 check_untyped_defs = true
58 pretty = true
59 show_error_codes = true
60 show_error_context = true
61 warn_redundant_casts = true
62 warn_unused_ignores = true
63 warn_unreachable = true
64
65 [[tool.mypy.overrides]]
66 module = "django_redis.*"
67 ignore_missing_imports = true
68
69 [[tool.mypy.overrides]]
70 module = "prometheus_client.*"
71 ignore_missing_imports = true
72
73 [[tool.mypy.overrides]]
74 module = "redis_cache.*"
75 ignore_missing_imports = true
76
77 [[tool.mypy.overrides]]
78 module = "rq_scheduler.*"
79 ignore_missing_imports = true
80
81 [[tool.mypy.overrides]]
82 module = "rq.cron"
83 ignore_missing_imports = true
84
85 [tool.ruff]
86 target-version = "py39"
87
88 # Set what ruff should check for.
89 # See https://beta.ruff.rs/docs/rules/ for a list of rules.
90 line-length = 120
91 format.quote-style = "preserve"
92 lint.select = [
93 "E", # pycodestyle errors
94 "F", # pyflakes errors
95 "I", # import sorting
96 "W", # pycodestyle warnings,
97 "UP",
98 ]
99 lint.isort.known-first-party = [ "django_rq" ]
100 lint.isort.section-order = [
101 "future",
102 "standard-library",
103 "third-party",
104 "first-party",
105 "local-folder",
106 ]
107
108 [tool.pytest.ini_options]
109 DJANGO_SETTINGS_MODULE = "tests.settings"
110 pythonpath = ["."]
111 testpaths = ["tests"]
112 python_files = ["test_*.py", "tests.py"]