-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
169 lines (152 loc) · 3.96 KB
/
Copy pathpyproject.toml
File metadata and controls
169 lines (152 loc) · 3.96 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sentinel-agent"
version = "0.1.0"
description = "Autonomous security agent with LLM reasoning, behavioral drift detection, and network analysis"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "Security Team" }
]
keywords = ["security", "llm", "autonomous-agent", "anomaly-detection", "network-analysis"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Topic :: Security",
]
dependencies = [
"anthropic>=0.7.0",
"openai>=1.0.0",
"py2neo>=2021.2.3",
"networkx>=3.0",
"pyod>=1.0.0",
"scikit-learn>=1.3.0",
"kafka-python>=2.0.2",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"mypy>=1.5.0",
"ruff>=0.1.0",
"pip-audit>=2.6.0",
"bandit>=1.7.5",
"safety>=2.3.5",
]
[project.urls]
Homepage = "https://github.com/yourusername/sentinel"
Documentation = "https://github.com/yourusername/sentinel/blob/main/README.md"
Repository = "https://github.com/yourusername/sentinel.git"
"Bug Tracker" = "https://github.com/yourusername/sentinel/issues"
[tool.setuptools]
packages = ["sentinel"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --strict-markers"
markers = [
"unit: unit tests",
"integration: integration tests",
"slow: slow running tests",
"security: security-related tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["sentinel"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__init__.py",
]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
precision = 2
show_missing = true
skip_covered = false
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
[[tool.mypy.overrides]]
module = "tests.*"
strict = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "kafka.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "py2neo.*"
ignore_missing_imports = true
[tool.ruff]
target-version = "py310"
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"RET", # flake8-return
"SIM", # flake8-simplify
]
ignore = [
"E501", # Line too long (handled by formatter)
"S101", # Use of assert (allowed in tests)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert in tests
"S106", # hardcoded passwords allowed in test fixtures
"N801", # class name conventions relaxed for tests
]
"sentinel/__init__.py" = [
"F401", # unused imports (re-exported)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"