-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (55 loc) · 1.34 KB
/
pyproject.toml
File metadata and controls
67 lines (55 loc) · 1.34 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
[project]
name = "watchdog"
version = "0.1.0"
description = "Self-hosted server monitoring service"
requires-python = ">=3.12"
dependencies = [
"httpx>=0.27,<1",
"asyncpg>=0.29,<1",
"pydantic>=2.6,<3",
"icmplib>=3.0,<4",
"aiohttp>=3.9,<4",
]
[project.optional-dependencies]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/watchdog"]
[tool.ruff]
line-length = 79
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "ASYNC"]
[tool.ruff.lint.isort]
known-first-party = ["watchdog"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E501"]
[tool.mypy]
python_version = "3.12"
disallow_untyped_defs = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
show_error_codes = true
no_implicit_optional = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = ["icmplib.*", "looptime.*", "asyncpg.*", "aiohttp.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
testpaths = ["tests"]
[dependency-groups]
dev = [
"looptime>=0.7",
"mypy>=1.11",
"pytest>=8.1,<10",
"pytest-asyncio>=1.3,<2",
"respx>=0.21,<1",
"ruff>=0.8,<1",
]