-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
81 lines (70 loc) · 1.85 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
[tool.poetry]
name = "soar-asset-mocker"
version = "0.2.0"
description = "Asset Mocker enhances SOAR Connectors with ability to record and replay all HTTP communication done on Python socket level, allowing for faster playbook development"
authors = ["Michał Posłuszny <mposluszny@splunk.com>"]
readme = "README.md"
packages = [{include = "soar_asset_mocker"}]
[tool.poetry.scripts]
soar_asset_mocker = "soar_asset_mocker.cli.app:cli_app"
[tool.poetry.dependencies]
python = "^3.9"
vcrpy = "^6.0.2"
pyyaml = "^6.0.2"
dacite = "^1.8.1"
msgpack = "^1.1.0"
requests = "2.32.3"
urllib3 = "1.26.19" # explicitly defined urllib3 to make it SOAR compatible
[tool.poetry.group.dev.dependencies]
poetry = "^1.8.4"
poetry-plugin-export = "^1.8.0"
isort = "^5.13.2"
pytest = "^8.3.3"
pre-commit = "^4.0.1"
mypy = "^1.12.1"
pytest-httpserver = "^1.1.0"
pytest-cov = "^5.0.0"
ruff = "^0.7.1"
typer = "^0.12.5"
types-PyYAML = "^6.0.12"
types-requests = "^2.31.0.1"
[tool.poetry.group.ci.dependencies]
cmp-version = "^3.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[virtualenvs]
in-project = true
[tool.black]
target-version = ['py39']
line-length = 120
verbose = true
[tool.ruff]
line-length = 120
target-version = "py39"
extend-exclude = [ "example_connector*.py" ]
[tool.ruff.lint]
select = ["F", "E", "W", "A", "UP", "B", "C4", "RET", "SIM", "RUF", "PLC", "PLE", "PLW", "PT", "T201"]
[tool.isort]
profile = "black"
py_version=39
multi_line_output = 3
line_length = 120
[tool.coverage.report]
omit = [
"tests/*",
"__init__.py",
"soar_libs.py"
]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]