-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (95 loc) · 1.91 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (95 loc) · 1.91 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "minique"
dynamic = ["version"]
description = "Minimal Redis job runner"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Valohai", email = "hait@valohai.com" },
]
[project.optional-dependencies]
redis = [
"redis>=2.10.0",
]
valkey = [
"valkey>=6.0.0",
]
sentry = [
"sentry-sdk~=2.36",
]
orjson = [
"orjson",
]
[project.scripts]
minique = "minique.cli:main"
[project.urls]
Homepage = "https://github.com/valohai/minique"
[tool.hatch.version]
path = "minique/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/minique",
]
[[tool.mypy.overrides]]
module = "orjson.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sentry_sdk.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
norecursedirs = [".git", ".tox"]
filterwarnings = [
"error",
"ignore:.*The distutils package.*:DeprecationWarning",
"ignore:.*the imp module is deprecated in favour of importlib.*:DeprecationWarning",
"ignore:.*the imp module is deprecated in favour of importlib.*:PendingDeprecationWarning",
]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
mccabe.max-complexity = 10
ignore = [
"E501",
]
extend-select = [
"B",
"C9",
"E",
"F",
"FA100",
"I",
"PGH003",
"T2",
"TC002",
"TRY201",
"UP",
"W",
]
[tool.ruff.lint.per-file-ignores]
"minique_tests/**" = ["T2"]
[dependency-groups]
dev = [
"mypy>=1.4.1",
"pytest-cov>=4.1.0",
"pytest>=7.4.4",
"types-gevent>=26.4.0.20260518",
"types-pysocks>=1.7.1.20260518",
"types-redis>=4.6.0.11",
"types-requests>=2.33.0.20260518",
]
[tool.coverage.run]
branch = true
omit = [
"*site-packages*",
]
[tool.coverage.report]
exclude_also = [
"except ImportError:",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise NotImplementedError",
]