-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
146 lines (128 loc) · 3.04 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
146
[tool.poetry]
name = "detectiq"
version = "0.1.0"
description = "A detection engineering workbench with LLM capabilities"
authors = ["Your Name <[email protected]>"]
readme = "README.md"
packages = [{include = "detectiq"}]
[tool.poetry.dependencies]
python = ">=3.9, <3.14"
sigmaiq = "^0.4.5"
langchain = "^0.3.7"
langchain-community = "^0.3.7"
langchain-openai = "^0.2.8"
langchain-core = "^0.3.17"
openai = "^1.54.4"
tiktoken = "^0.8.0"
faiss-cpu = "^1.9.0"
yara-python = "^4.5.1"
dpkt = "^1.9.8"
scapy = "^2.6.1"
cryptography = "^42.0.5"
python-dotenv = "^1.0.1"
plyara = "^2.1.1"
requests = "^2.32.3"
aiofiles = "^24.1.0"
idstools = "^0.6.5"
pefile = "^2024.8.26"
pyyaml = "^6.0"
# Webapp extras
django = {version = "^4.2.0", optional = true}
djangorestframework = {version = "^3.14.0", optional = true}
django-cors-headers = {version = "^4.0.0", optional = true}
psycopg2-binary = {version = "^2.9.0", optional = true}
django-environ = {version = "^0.10.0", optional = true}
djangorestframework-simplejwt = {version = "^5.3.1", optional = true}
django-extensions = {version = "^3.2.3", optional = true}
# Splunk extras
splunk-sdk = {version = "^2.1.0", optional = true}
# Elasticsearch extras
elasticsearch = {version = "^8.0.0", optional = true}
# Microsoft extras
msal = {version = "^1.31.1", optional = true}
ruamel-yaml = "^0.18.6"
pydantic = ">=2.0.0"
keyring = "^25.5.0"
[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"
python-dotenv = "^1.0.1"
toml = "^0.10.2"
[tool.poetry.extras]
splunk = ["splunk-sdk"]
elastic = ["elasticsearch"]
microsoft = ["msal"]
webapp = [
"django",
"djangorestframework",
"django-cors-headers",
"psycopg2-binary",
"django-environ",
"djangorestframework-simplejwt",
"django-extensions"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.ruff]
line-length = 120 # Same as Black
# Assume Python 3.11
target-version = "py311"
# 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"
]
[tool.ruff.lint]
# Enable isort rules
select = ["I"]
# Sort imports
[tool.ruff.lint.isort]
known-first-party = ["detectiq"]
combine-as-imports = true
case-sensitive = false
[tool.coverage.run]
omit = [
# omit anything in a tests directory
"tests/*",
]
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
addopts = "--cov=detectiq --cov-report=term-missing"
asyncio_mode = "auto"
[tool.poetry.scripts]
update-reqs = "update_requirements:main"
format = "format:main"