-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
145 lines (130 loc) · 3.3 KB
/
pyproject.toml
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
[tool.poetry]
name = "SigmAIQ"
version = "0.4.5"
description = "Wrapper and tools for pySigma and Sigma rules"
authors = ["Stephen Lincoln <stephen.lincoln@attackiq.com>", "AttackIQ <support@attackiq.com>"]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Security"
]
packages = [
{ include = "sigmaiq" }
]
[tool.poetry.dependencies]
python = ">=3.9, <3.14"
pysigma = "0.11.18"
certifi = ">=2024.8.30"
pysigma-backend-carbonblack = "0.1.8"
pysigma-backend-cortexxdr = "0.1.4"
pysigma-backend-crowdstrike = "2.0.1"
pysigma-backend-elasticsearch = "1.1.3"
pysigma-backend-insightidr = "0.2.4"
pysigma-backend-kusto = "0.4.2"
pysigma-backend-loki = "0.12.2"
pysigma-backend-netwitness = "0.1.3"
pysigma-backend-opensearch = "1.0.3"
pysigma-backend-qradar-aql = "0.3.2"
pysigma-backend-secops = "0.1.4"
pysigma-backend-sentinelone = "0.1.3"
pysigma-backend-splunk = "1.1.0"
pysigma-backend-stix2 = "0.2.0"
pysigma-pipeline-sysmon = "1.0.4"
pysigma-pipeline-windows = "1.2.0"
importlib-resources = "^5.13.0"
# Optional LLM dependencies, needed here for extras install with pip
langchain = {version = "^0.2.9", optional = true}
openai = {version = "*", optional = true}
tiktoken = {version = "*", optional = true}
faiss-cpu = {version = "*", optional = true}
langchain-community = {version = "^0.2.7", optional = true}
langchain-openai = {version = "^0.1.17", optional = true}
langchain-core = {version = "^0.2.20", optional = true}
[tool.poetry.group.llm]
optional = true
[tool.poetry.group.llm.dependencies]
langchain = "^0.2.9"
openai = "*"
tiktoken = "*"
faiss-cpu = "*"
langchain-community = "^0.2.7"
langchain-openai = "^0.1.17"
langchain-core = "^0.2.20"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
black = "^24.8.0"
ruff = "^0.7.2"
pytest-asyncio = "^0.24.0"
[tool.poetry.extras]
llm = [
"langchain",
"openai",
"tiktoken",
"faiss-cpu",
"langchain-community",
"langchain-openai",
"langchain-core"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
".venv"
]
# Same as Black.
line-length = 120
# Assume Python 3.11
target-version = "py311"
[tool.coverage.run]
omit = [
# omit anything in a tests directory
"tests/*",
# omit globals
"sigmaiq/globals.py",
]
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
addopts = "--cov=sigmaiq --cov-report=term-missing"
asyncio_mode = "auto"