|
1 | 1 | [build-system] |
2 | | -requires = ["hatchling"] |
3 | 2 | build-backend = "hatchling.build" |
| 3 | +requires = [ "hatchling" ] |
4 | 4 |
|
5 | 5 | [project] |
6 | 6 | name = "django-tasks-scheduler" |
7 | 7 | version = "4.0.10" |
8 | 8 | description = "An async job scheduler for django using redis/valkey brokers" |
9 | | -authors = [{ name = "Daniel Moran", email = "daniel@moransoftware.ca" }] |
10 | | -requires-python = ">=3.10" |
11 | 9 | readme = "README.md" |
12 | | -license = "MIT" |
13 | | -maintainers = [{ name = "Daniel Moran", email = "daniel@moransoftware.ca" }] |
14 | 10 | keywords = [ |
15 | | - "redis", |
16 | | - "valkey", |
17 | | - "django", |
18 | | - "background-jobs", |
19 | | - "job-queue", |
20 | | - "task-queue", |
21 | | - "redis-queue", |
22 | | - "scheduled-jobs", |
| 11 | + "background-jobs", |
| 12 | + "django", |
| 13 | + "job-queue", |
| 14 | + "redis", |
| 15 | + "redis-queue", |
| 16 | + "scheduled-jobs", |
| 17 | + "task-queue", |
| 18 | + "valkey", |
23 | 19 | ] |
| 20 | +license = "MIT" |
| 21 | +maintainers = [ { name = "Daniel Moran", email = "daniel@moransoftware.ca" } ] |
| 22 | +authors = [ { name = "Daniel Moran", email = "daniel@moransoftware.ca" } ] |
| 23 | +requires-python = ">=3.10" |
24 | 24 | classifiers = [ |
25 | | - "Development Status :: 5 - Production/Stable", |
26 | | - "Environment :: Web Environment", |
27 | | - "Intended Audience :: Developers", |
28 | | - "License :: OSI Approved :: MIT License", |
29 | | - "Operating System :: OS Independent", |
30 | | - "Programming Language :: Python", |
31 | | - "Programming Language :: Python :: 3.10", |
32 | | - "Programming Language :: Python :: 3.11", |
33 | | - "Programming Language :: Python :: 3.12", |
34 | | - "Programming Language :: Python :: 3.13", |
35 | | - "Programming Language :: Python :: 3.14", |
36 | | - "Framework :: Django", |
37 | | - "Framework :: Django :: 5.0", |
38 | | - "Framework :: Django :: 5.1", |
39 | | - "Framework :: Django :: 5.2", |
| 25 | + "Development Status :: 5 - Production/Stable", |
| 26 | + "Environment :: Web Environment", |
| 27 | + "Framework :: Django", |
| 28 | + "Framework :: Django :: 5.0", |
| 29 | + "Framework :: Django :: 5.1", |
| 30 | + "Framework :: Django :: 5.2", |
| 31 | + "Intended Audience :: Developers", |
| 32 | + "License :: OSI Approved :: MIT License", |
| 33 | + "Operating System :: OS Independent", |
| 34 | + "Programming Language :: Python", |
| 35 | + "Programming Language :: Python :: 3 :: Only", |
| 36 | + "Programming Language :: Python :: 3.10", |
| 37 | + "Programming Language :: Python :: 3.11", |
| 38 | + "Programming Language :: Python :: 3.12", |
| 39 | + "Programming Language :: Python :: 3.13", |
| 40 | + "Programming Language :: Python :: 3.14", |
40 | 41 | ] |
41 | 42 | dependencies = [ |
42 | | - "django>=5", |
43 | | - "croniter>=2.0", |
44 | | - "click~=8.2", |
45 | | - "typing-extensions>=4.15.0", |
| 43 | + "click~=8.2", |
| 44 | + "croniter>=2", |
| 45 | + "django>=5", |
| 46 | + "typing-extensions>=4.15", |
46 | 47 | ] |
47 | 48 |
|
48 | | -[project.optional-dependencies] |
49 | | -yaml = ["pyyaml~=6.0", "types-PyYAML>=6.0.12.20250516"] |
50 | | -valkey = ["valkey>=6.0.2,<7"] |
51 | | -sentry = ["sentry-sdk~=2.19"] |
52 | | - |
53 | | -[project.urls] |
54 | | -Homepage = "https://github.com/django-commons/django-tasks-scheduler" |
55 | | -Documentation = "https://django-tasks-scheduler.readthedocs.io/" |
56 | | -"Bug Tracker" = "https://github.com/django-commons/django-tasks-scheduler/issues" |
57 | | -Funding = "https://github.com/sponsors/cunla" |
| 49 | +optional-dependencies.sentry = [ "sentry-sdk~=2.19" ] |
| 50 | +optional-dependencies.valkey = [ "valkey>=6.0.2,<7" ] |
| 51 | +optional-dependencies.yaml = [ "pyyaml~=6.0", "types-pyyaml>=6.0.12.20250516" ] |
| 52 | +urls."Bug Tracker" = "https://github.com/django-commons/django-tasks-scheduler/issues" |
| 53 | +urls.Documentation = "https://django-tasks-scheduler.readthedocs.io/" |
| 54 | +urls.Funding = "https://github.com/sponsors/cunla" |
| 55 | +urls.Homepage = "https://github.com/django-commons/django-tasks-scheduler" |
58 | 56 |
|
59 | 57 | [dependency-groups] |
60 | 58 | dev = [ |
61 | | - "pre-commit>=4.2", |
62 | | - "time-machine>=2.19", |
63 | | - "ruff>=0.13", |
64 | | - "coverage[toml]>=7.10", |
65 | | - "fakeredis>=2.28", |
66 | | - "pyyaml>=6", |
67 | | - "mypy>=1.18", |
68 | | - "types-croniter>=6.0.0.20250411", |
69 | | - "beautifulsoup4>=4.13.4" |
| 59 | + "beautifulsoup4>=4.13.4", |
| 60 | + "coverage[toml]>=7.10", |
| 61 | + "fakeredis>=2.28", |
| 62 | + "mypy>=1.18", |
| 63 | + "pre-commit>=4.2", |
| 64 | + "pyyaml>=6", |
| 65 | + "ruff>=0.13", |
| 66 | + "time-machine>=2.19", |
| 67 | + "types-croniter>=6.0.0.20250411", |
70 | 68 | ] |
71 | 69 |
|
72 | 70 | [tool.hatch.build.targets.sdist] |
73 | | -include = ["scheduler"] |
| 71 | +include = [ "scheduler" ] |
74 | 72 |
|
75 | 73 | [tool.hatch.build.targets.wheel] |
76 | | -include = ["scheduler"] |
| 74 | +include = [ "scheduler" ] |
77 | 75 |
|
78 | 76 | [tool.ruff] |
79 | 77 | line-length = 120 |
80 | 78 | exclude = [ |
81 | | - '__pycache__', |
82 | | - '.github', |
83 | | - '.venv', |
84 | | - 'scheduler/migrations', |
85 | | - 'testproject', |
| 79 | + ".github", |
| 80 | + ".venv", |
| 81 | + "__pycache__", |
| 82 | + "scheduler/migrations", |
| 83 | + "testproject", |
86 | 84 | ] |
87 | 85 |
|
88 | | -[tool.ruff.lint] |
89 | | -select = [ |
90 | | - "A", # flake8-builtins |
91 | | - "AIR", # Airflow |
92 | | - "ASYNC", # flake8-async |
93 | | - "C4", # flake8-comprehensions |
94 | | - "C90", # McCabe cyclomatic complexity |
95 | | - "DJ", # flake8-django |
96 | | - "E", # pycodestyle |
97 | | - "EXE", # flake8-executable |
98 | | - "F", # Pyflakes |
99 | | - "FA", # flake8-future-annotations |
100 | | - "FAST", # FastAPI |
101 | | - "FIX", # flake8-fixme |
102 | | - "FLY", # flynt |
103 | | - "FURB", # refurb |
104 | | - "ICN", # flake8-import-conventions |
105 | | - "INP", # flake8-no-pep420 |
106 | | - "INT", # flake8-gettext |
107 | | - "ISC", # flake8-implicit-str-concat |
108 | | - "LOG", # flake8-logging |
109 | | - "NPY", # NumPy-specific rules |
110 | | - "PD", # pandas-vet |
111 | | - "PERF", # Perflint |
112 | | - "PIE", # flake8-pie |
113 | | - "RSE", # flake8-raise |
114 | | - "SLOT", # flake8-slots |
115 | | - "T10", # flake8-debugger |
116 | | - "TC", # flake8-type-checking |
117 | | - "TD", # flake8-todos |
118 | | - "W", # pycodestyle |
119 | | - "YTT", # flake8-2020 |
| 86 | +lint.select = [ |
| 87 | + "A", # flake8-builtins |
| 88 | + "AIR", # Airflow |
| 89 | + "ASYNC", # flake8-async |
| 90 | + "C4", # flake8-comprehensions |
| 91 | + "C90", # McCabe cyclomatic complexity |
| 92 | + "DJ", # flake8-django |
| 93 | + "E", # pycodestyle |
| 94 | + "EXE", # flake8-executable |
| 95 | + "F", # Pyflakes |
| 96 | + "FA", # flake8-future-annotations |
| 97 | + "FAST", # FastAPI |
| 98 | + "FIX", # flake8-fixme |
| 99 | + "FLY", # flynt |
| 100 | + "FURB", # refurb |
| 101 | + "ICN", # flake8-import-conventions |
| 102 | + "INP", # flake8-no-pep420 |
| 103 | + "INT", # flake8-gettext |
| 104 | + "ISC", # flake8-implicit-str-concat |
| 105 | + "LOG", # flake8-logging |
| 106 | + "NPY", # NumPy-specific rules |
| 107 | + "PD", # pandas-vet |
| 108 | + "PERF", # Perflint |
| 109 | + "PIE", # flake8-pie |
| 110 | + "RSE", # flake8-raise |
| 111 | + "SLOT", # flake8-slots |
| 112 | + "T10", # flake8-debugger |
| 113 | + "TC", # flake8-type-checking |
| 114 | + "TD", # flake8-todos |
| 115 | + "W", # pycodestyle |
| 116 | + "YTT", # flake8-2020 |
120 | 117 | # "ANN", # flake8-annotations |
121 | 118 | # "ARG", # flake8-unused-arguments |
122 | 119 | # "B", # flake8-bugbear |
@@ -148,18 +145,20 @@ select = [ |
148 | 145 | # "TRY", # tryceratops |
149 | 146 | # "UP", # pyupgrade |
150 | 147 | ] |
151 | | -extend-ignore = ["PIE790"] |
152 | | -mccabe.max-complexity = 13 |
153 | | -per-file-ignores."scheduler/models/args.py" = ["DJ012"] |
154 | | -per-file-ignores."scheduler/models/ephemeral_models.py" = ["DJ008"] |
155 | | -per-file-ignores."scheduler/models/task.py" = ["DJ001", "DJ012"] |
| 148 | +lint.extend-ignore = [ "PIE790" ] |
| 149 | +lint.per-file-ignores."scheduler/models/args.py" = [ "DJ012" ] |
| 150 | +lint.per-file-ignores."scheduler/models/ephemeral_models.py" = [ "DJ008" ] |
| 151 | +lint.per-file-ignores."scheduler/models/task.py" = [ "DJ001", "DJ012" ] |
| 152 | +lint.mccabe.max-complexity = 13 |
156 | 153 |
|
157 | 154 | [tool.mypy] |
158 | | -packages = ['scheduler', ] |
159 | | -exclude = ["scheduler/tests/.*\\.py", |
160 | | - "scheduler/migrations/.*\\.py", |
161 | | - "testproject/.*\\.py", |
162 | | - "testproject/tests/.*\\.py"] |
| 155 | +packages = [ 'scheduler' ] |
| 156 | +exclude = [ |
| 157 | + "scheduler/tests/.*\\.py", |
| 158 | + "scheduler/migrations/.*\\.py", |
| 159 | + "testproject/.*\\.py", |
| 160 | + "testproject/tests/.*\\.py", |
| 161 | +] |
163 | 162 | strict = true |
164 | 163 | follow_imports = "silent" |
165 | 164 | ignore_missing_imports = true |
|
0 commit comments