-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpyproject.toml
84 lines (73 loc) · 1.91 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
[project]
name = "pyxxl"
authors = [{ name = "fcfangcc", email = "[email protected]" }]
description = "A Python executor for XXL-jobs"
readme = "README.md"
requires-python = ">=3.9"
version = "0.4.0"
classifiers = [
"Framework :: AsyncIO",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["XXL", "scheduled"]
license = { text = "GPL-3.0-only" }
dependencies = ["aiofiles", "aiohttp"]
[project.optional-dependencies]
dotenv = ["python-dotenv"]
metrics = ["prometheus-client"]
redis = ["redis"]
all = ["redis", "python-dotenv", "prometheus-client"]
doc = [
"mdx-include~=1.4",
"mkdocs~=1.4",
"mkdocs-material~=9.5.23",
"mkdocstrings[python]~=0.20",
"mike",
]
dev = [
"mypy~=1.8.0",
"pre-commit~=3.6.0",
"pytest==7.1",
"pytest-aiohttp==1.1.0",
"pytest-asyncio==0.18.3",
"pytest-cov==3.0.0",
"ruff<=1",
]
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["pyxxl*"]
exclude = ["pyxxl.tests*"]
[tool.mypy]
disallow_untyped_defs = true
exclude = ['^pyxxl/tests/test_.*\.py$', '^pyxxl/tests/api/test_.*\.py$']
files = "pyxxl"
ignore_missing_imports = true
[tool.coverage.run]
concurrency = ["thread"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.",
"raise NotImplementedError",
"\\.\\.\\.",
"if TYPE_CHECKING",
]
[tool.ruff]
exclude = ["__init__.py"]
line-length = 119
[tool.ruff.lint]
ignore = [
"C408", # Unnecessary `dict` call (rewrite as a literal)
]
select = ["E", "W", "F", "I", "C", "B", "PGH"]
[tool.pytest.ini_options]
addopts = "--asyncio-mode auto"