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
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ repos:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.30.1
hooks:
- id: pyproject-fmt
args: [--table-format, long]
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
Expand Down
147 changes: 74 additions & 73 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,110 +1,111 @@
[build-system]
requires = ["flit_core>=3.2", "flit_scm", "wheel"]
build-backend = "flit_scm:buildapi"
requires = [ "flit-core>=3.2", "flit-scm", "wheel" ]

[project]
name = "django-crontask"
authors = [
{ name = "Rust Saiargaliev", email = "fly.amureki@gmail.com" },
{ name = "Johannes Maron", email = "johannes@maron.family" },
{ name = "Mostafa Mohamed", email = "mostafa.anm91@gmail.com" },
{ name = "Jacqueline Kraus", email = "jacquelinekraus1992@gmail.com" },
]
readme = "README.md"
keywords = [ "cron", "Django", "scheduler", "tasks" ]
license = { file = "LICENSE" }
keywords = ["Django", "cron", "tasks", "scheduler"]
dynamic = ["version", "description"]
requires-python = ">=3.14"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Environment :: Web Environment",
"License :: OSI Approved :: BSD License",
"Framework :: Django",
"Framework :: Django :: 6.0",
"Framework :: Django :: 6.1",
"Intended Audience :: Developers",
"Operating System :: Microsoft :: Windows",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Communications :: Email",
"Topic :: Text Processing :: Markup :: Markdown",
"Topic :: Software Development",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Framework :: Django",
"Framework :: Django :: 6.0",
"Framework :: Django :: 6.1",
"Topic :: Communications :: Email",
"Topic :: Software Development",
"Topic :: Text Processing :: Markup :: Markdown",
]
requires-python = ">=3.14"
dependencies = ["apscheduler", "django>=6.0"]
dynamic = [ "description", "version" ]
dependencies = [ "apscheduler", "django>=6" ]
[[project.authors]]
name = "Rust Saiargaliev"
email = "fly.amureki@gmail.com"

[project.optional-dependencies]
sentry = ["sentry-sdk"]
redis = ["redis"]
[[project.authors]]
name = "Johannes Maron"
email = "johannes@maron.family"

[[project.authors]]
name = "Mostafa Mohamed"
email = "mostafa.anm91@gmail.com"

[[project.authors]]
name = "Jacqueline Kraus"
email = "jacquelinekraus1992@gmail.com"
[project.optional-dependencies]
redis = [ "redis" ]
sentry = [ "sentry-sdk" ]
[project.urls]
# https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels
Homepage = "https://github.com/codingjoe/django-crontask"
Changelog = "https://github.com/codingjoe/django-crontask/releases"
Source = "https://github.com/codingjoe/django-crontask"
Releasenotes = "https://github.com/codingjoe/django-crontask/releases/latest"
Documentation = "https://django-crontask.rtfd.io/"
Issues = "https://github.com/codingjoe/django-crontask/issues"
Funding = "https://github.com/sponsors/codingjoe"
# https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels
Homepage = "https://github.com/codingjoe/django-crontask"
Issues = "https://github.com/codingjoe/django-crontask/issues"
Releasenotes = "https://github.com/codingjoe/django-crontask/releases/latest"
Source = "https://github.com/codingjoe/django-crontask"

[tool.flit.module]
name = "crontask"
[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"fakeredis[lua]",
"pytest",
"pytest-cov",
"pytest-django",
]

[tool.setuptools_scm]
write_to = "crontask/_version.py"

[tool.flit]
[tool.flit.module]
name = "crontask"

[tool.ruff]
src = [ "crontask", "tests" ]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [ "B904", "D1", "E501", "S101" ]
isort.combine-as-imports = true
isort.force-wrap-aliases = true
isort.section-order = [ "future", "standard-library", "third-party", "first-party", "local-folder" ]
isort.split-on-trailing-comma = true
pydocstyle.convention = "pep257"

[tool.pytest]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [ "tests" ]
addopts = "--cov --cov-report=xml --cov-report=term --tb=short -rxs"
testpaths = ["tests"]
DJANGO_SETTINGS_MODULE = "tests.testapp.settings"

[tool.coverage]
[tool.coverage.run]
source = ["crontask"]

source = [ "crontask" ]
[tool.coverage.report]
show_missing = true
skip_covered = true

[tool.ruff]
src = ["crontask", "tests"]

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"C", # flake8-comprehensions
]

ignore = ["B904", "D1", "E501", "S101"]

[tool.ruff.lint.isort]
combine-as-imports = true
split-on-trailing-comma = true
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
force-wrap-aliases = true

[tool.ruff.lint.pydocstyle]
convention = "pep257"

[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"pytest",
"pytest-cov",
"pytest-django",
"fakeredis[lua]",
]
show_missing = true
Loading