forked from procrastinate-org/procrastinate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
163 lines (139 loc) · 4.01 KB
/
pyproject.toml
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "procrastinate"
version = "0.0.0"
description = "Postgres-based distributed task processing library"
authors = ["Joachim Jablon", "Eric Lemoine"]
license = "MIT License"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
]
readme = "README.md"
keywords = ["postgres", "task-queue"]
homepage = "https://procrastinate.readthedocs.io/"
repository = "https://github.com/procrastinate-org/procrastinate/"
documentation = "https://procrastinate.readthedocs.io/"
[tool.poetry.scripts]
procrastinate = 'procrastinate.cli:main'
[tool.poetry.dependencies]
python = "^3.8"
aiopg = { version = "*", optional = true }
anyio = "*"
asgiref = "*"
attrs = "*"
contextlib2 = { version = "*", python = "<3.10" }
croniter = "*"
django = { version = ">=2.2", optional = true }
importlib-metadata = { version = "*", python = "<3.8" }
importlib-resources = { version = ">=1.4", python = "<3.9" }
psycopg = { extras = ["pool"], version = "^3.1.13" }
psycopg2-binary = { version = "*", optional = true }
python-dateutil = "*"
sqlalchemy = { version = "^2.0", optional = true }
typing-extensions = { version = "*", python = "<3.8" }
[tool.poetry.extras]
django = ["django"]
sqlalchemy = ["sqlalchemy"]
aiopg = ["aiopg", "psycopg2-binary"]
psycopg2 = ["psycopg2-binary"]
[tool.poetry.group.types]
optional = true
[tool.poetry.group.types.dependencies]
django-stubs = "*"
[tool.poetry.group.release.dependencies]
dunamai = "*"
[tool.poetry.group.lint_format.dependencies]
ruff = "*"
[tool.poetry.group.pg_implem.dependencies]
aiopg = "*"
sqlalchemy = { extras = ["mypy"], version = "*" }
psycopg2-binary = "*"
psycopg = { extras = ["binary"], version = "^3.1.13" }
[tool.poetry.group.django.dependencies]
django = ">=2.2"
[tool.poetry.group.test.dependencies]
pytest-asyncio = "*"
pytest-cov = "*"
pytest-django = "*"
pytest-mock = "*"
migra = "*"
# migra depends on schemainspect, which has an implicit dependency on setuptools
# (pkg_resources).
setuptools = { version = "*", python = ">=3.12" }
[tool.poetry.group.docs.dependencies]
django = ">=2.2"
furo = "*"
Sphinx = "*"
sphinx-autodoc-typehints = "*"
sphinx-copybutton = "*"
sphinx-github-changelog = "*"
sphinxcontrib-programoutput = "*"
myst-parser = "*"
[tool.poetry-dynamic-versioning]
enable = true
pattern = '(?P<base>\d+(\.\d+)*)([-._]?((?P<stage>[a-zA-Z]+)[-._]?(?P<revision>\d+)?))?$'
[tool.pytest.ini_options]
addopts = [
"--cov-report=term-missing",
"--cov-report=html",
"--cov-branch",
"--cov=procrastinate",
"-vv",
"--strict-markers",
"-rfE",
"--reuse-db",
]
testpaths = [
"tests/unit",
"tests/integration",
"tests/acceptance",
"tests/migration",
]
filterwarnings = """
error
ignore:unclosed.+:ResourceWarning
"""
asyncio_mode = "auto"
DJANGO_SETTINGS_MODULE = "tests.acceptance.django_settings"
[tool.coverage.run]
relative_files = true
omit = [
"procrastinate/contrib/django/migrations/*",
# It really wouldn't make sense to test the admin config, I guess ?
"procrastinate/contrib/django/admin.py",
]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"coverage: exclude",
"if TYPE_CHECKING:",
"[ ]+\\.\\.\\.$",
]
[tool.pyright]
exclude = ["tests", ".venv"]
[tool.ruff]
extend-exclude = [".venv", "migrations"]
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
"I", # isort
"E", # pycodestyle errors
"W", # pycodestyle warnings
"RUF", # ruff
]
fixable = ["ALL"]
extend-ignore = [
"E501", # line too long
# It's not exactly false but it's not supported enough by our dependencies,
# so ruff is fighting with Pyright on this.
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.doc8]
max-line-length = 88
ignore-path = "docs/_build,.venv"