Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (71 loc) · 1.79 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (71 loc) · 1.79 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
[project]
name = "sentinelops"
version = "0.1.0"
description = "AI-assisted diagnosis and self-healing for a simulated anycast DNS network"
readme = "README.md"
requires-python = ">=3.11"
authors = [
{ name = "Mohamed Azab" },
{ name = "Yassin Koubeisy" },
]
dependencies = [
"numpy>=2.1",
"scipy>=1.14",
"scikit-learn>=1.6",
"matplotlib>=3.9",
"fastapi>=0.115",
"uvicorn>=0.32",
"pydantic>=2.9",
]
[project.scripts]
sentinelops = "sentinelops.cli:main"
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-cov>=6.0",
"hypothesis>=6.120",
"ruff>=0.8",
"mypy>=1.13",
]
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/sentinelops"]
# --------------------------------------------------------------------------- ruff
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # simplify
"RUF", # ruff-specific
"D", # pydocstyle
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"]
# --------------------------------------------------------------------------- mypy
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src"]
warn_unreachable = true
[[tool.mypy.overrides]]
module = ["sklearn.*", "scipy.*"]
ignore_missing_imports = true
# --------------------------------------------------------------------------- pytest
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--import-mode=importlib", "--strict-markers", "-ra"]
[tool.coverage.run]
source = ["sentinelops"]
branch = true