-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (60 loc) · 1.84 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (60 loc) · 1.84 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
[project]
name = "pytest-warden"
version = "0.1.0"
description = "Windows Job Object hard-kill supervision for real pytest subprocesses — a drop-in replacement for pytest-xdist + pytest-timeout on hang-prone CI."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.md"]
requires-python = ">=3.10"
dependencies = [
"pytest>=7",
"coverage>=7",
"pywin32; sys_platform == 'win32'",
]
[project.optional-dependencies]
psutil = ["psutil>=5.9"]
[project.entry-points.pytest11]
warden = "pytest_warden.plugin"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pytest_warden"]
[dependency-groups]
dev = [
"pytest>=7",
"pytest-cov>=5",
"psutil>=5.9",
"ruff>=0.8",
"ty>=0.0.1a1",
"pre-commit>=4",
"defusedxml>=0.7",
]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
ignore = [
"E501", # line length is handled by the formatter, not worth hard-failing lint on
]
[tool.ruff.lint.isort]
known-first-party = ["pytest_warden"]
[tool.ruff.format]
quote-style = "double"
[tool.ty.environment]
python-version = "3.10"
# CI's lint job (the only place `ty check` runs today) is pinned to
# ubuntu-latest -- without this, `ty check` targets whatever platform it's
# invoked FROM instead, so the same command passes in CI but fails locally
# on Windows (jobobject.py's `if IS_WINDOWS: import win32api...` becomes a
# real, unresolvable-stub import once ty assumes win32, since pywin32's
# native extension modules aren't visible to it the way a regular package
# would be). Pinning here keeps local and CI results identical regardless
# of the contributor's own OS.
python-platform = "linux"
[tool.ty.src]
include = ["src/pytest_warden"]
exclude = ["tests"]
[tool.pytest.ini_options]
timeout = 30