-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
193 lines (172 loc) · 5.73 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "grove"
readme = "README.md"
description = "A Software as a Service (SaaS) log collection framework."
requires-python = ">=3.9"
dynamic = ["version"]
authors = [{name = "HashiCorp Security (TDR)"}]
license = {text = "MPL-2.0"}
classifiers = [
"Programming Language :: Python :: 3.9",
"Natural Language :: English",
]
dependencies = [
"urllib3<2.0",
"aws-lambda-powertools>=2.0,<3.0",
"boto3>=1.26,<2.0",
"requests>=2.28,<3.0",
"google-api-python-client>=2.68,<3.0",
"simple-salesforce>=1.12,<2.0",
"twilio>=7.15,<8.0",
"pydantic>=1.10,<2.0",
"jmespath>=1.0.0,<2.0",
"stripe>=8.4.0,<9.0",
]
[project.optional-dependencies]
tests = [
"black",
"coverage",
"ruff",
"types-setuptools",
"isort",
"mypy",
"pip-tools",
"mock",
"pytest",
"pytest-cov",
"responses",
"tox",
"sphinx",
"furo",
"moto[s3,ssm]>=4.0,<5.0",
"types-requests",
]
[tool.setuptools.packages.find]
include = ["grove*"]
[tool.setuptools.dynamic]
version = {attr = "grove.__about__.__version__"}
[project.scripts]
grove = "grove.entrypoints.local_process:entrypoint"
[project.entry-points."grove.entrypoints"]
aws_lambda = "grove.entrypoints.aws_lambda:entrypoint"
local_process = "grove.entrypoints.local_process:entrypoint"
[project.entry-points."grove.connectors"]
fleetdm_host_logs = "grove.connectors.fleetdm.host_logs:Connector"
fleetdm_software_logs = "grove.connectors.fleetdm.software_logs:Connector"
atlassian_audit_events = "grove.connectors.atlassian.audit_events:Connector"
github_audit_log = "grove.connectors.github.audit_log:Connector"
gsuite_activities = "grove.connectors.gsuite.activities:Connector"
local_heartbeat = "grove.connectors.local.heartbeat:Connector"
gsuite_alerts = "grove.connectors.gsuite.alerts:Connector"
okta_system_log = "grove.connectors.okta.system_log:Connector"
onepassword_events_itemusages = "grove.connectors.onepassword.events_itemusages:Connector"
onepassword_events_signinattempts = "grove.connectors.onepassword.events_signinattempts:Connector"
onepassword_events_audit = "grove.connectors.onepassword.events_audit:Connector"
pagerduty_audit_records = "grove.connectors.pagerduty.audit_records:Connector"
sf_event_log = "grove.connectors.sf.event_log:Connector"
sfmc_audit_events = "grove.connectors.sfmc.audit_events:Connector"
sfmc_security_events = "grove.connectors.sfmc.security_events:Connector"
slack_audit_logs = "grove.connectors.slack.audit_logs:Connector"
stripe_events = "grove.connectors.stripe.events:Connector"
tines_audit_logs = "grove.connectors.tines.audit_logs:Connector"
tfc_audit_trails = "grove.connectors.tfc.audit_trails:Connector"
torq_activity_logs = "grove.connectors.torq.activity_logs:Connector"
torq_audit_logs = "grove.connectors.torq.audit_logs:Connector"
twilio_monitor_events = "grove.connectors.twilio.monitor_events:Connector"
twilio_messages = "grove.connectors.twilio.messages:Connector"
workday_activity_logging = "grove.connectors.workday.activity_logging:Connector"
zoom_activities = "grove.connectors.zoom.activities:Connector"
zoom_operationlogs = "grove.connectors.zoom.operationlogs:Connector"
oomnitza_activities = "grove.connectors.oomnitza.activities:Connector"
[project.entry-points."grove.caches"]
aws_dynamodb = "grove.caches.aws_dynamodb:Handler"
local_memory = "grove.caches.local_memory:Handler"
[project.entry-points."grove.outputs"]
aws_s3 = "grove.outputs.aws_s3:Handler"
local_file = "grove.outputs.local_file:Handler"
local_stdout = "grove.outputs.local_stdout:Handler"
remote_http = "grove.outputs.remote_http:Handler"
[project.entry-points."grove.configs"]
aws_ssm = "grove.configs.aws_ssm:Handler"
local_file = "grove.configs.local_file:Handler"
[project.entry-points."grove.secrets"]
aws_ssm = "grove.secrets.aws_ssm:Handler"
hashicorp_vault = "grove.secrets.hashicorp_vault:Handler"
local_file = "grove.secrets.local_file:Handler"
[project.entry-points."grove.processors"]
extract_paths = "grove.processors.extract_paths:Handler"
filter_paths = "grove.processors.filter_paths:Handler"
filter_entries = "grove.processors.filter_entries:Handler"
split_path = "grove.processors.split_path:Handler"
zip_paths = "grove.processors.zip_paths:Handler"
[tool.mypy]
files = [
"./grove/**/*.py",
"./tests/**/*.py"
]
disable_error_code = "attr-defined, union-attr, unused-ignore"
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_calls = false
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_no_return = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
[tool.isort]
multi_line_output = 3
profile = "black"
[tool.pytest.ini_options]
junit_family = "xunit2"
norecursedirs = ".*"
self-contained-html = true
testpaths = [
"tests"
]
addopts = """
--strict
--tb=auto
--cov=grove
--cov-report=term-missing:skip-covered
--cov-branch
-p no:doctest
-p no:warnings
-s
"""
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = linters,py3
[testenv]
pip_version = pip
extras = tests
commands = pytest -c pyproject.toml {posargs}
srcs = grove
[testenv:linters]
basepython = python3
usedevelop = true
commands =
{[testenv:ruff]commands}
{[testenv:mypy]commands}
[testenv:ruff]
basepython = python3
skip_install = true
commands =
ruff check {[testenv]srcs}
[testenv:mypy]
basepython3 = python3
skip_install = true
commands =
- mypy --config-file pyproject.toml {[testenv]srcs}
"""