-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
89 lines (81 loc) · 1.88 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
[tool.poetry]
name = "Sekoia.io Automation Module to work with Trellix EDR events"
version = "0.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
orjson = "^3.7.7"
python-dateutil = "^2.8.2"
sekoia-automation-sdk = { version = "^1.13.0", extras = ["all"] }
async-lru = "^2.0.2"
aiohttp = "^3.8.5"
aiolimiter = "^1.1.0"
[tool.poetry.dev-dependencies]
pytest = "*"
pytest-cov = "*"
pytest-asyncio = "*"
pytest-xdist = "*"
pytest-env = "*"
pytest-flake8 = "*"
Faker = "^13.12.0"
autoflake = "^1.4"
isort = "^5.10.1"
black = "^22.3.0"
mypy = "^0.960"
aioresponses = "^0.7.4"
poethepoet = { version = "^0.16.5", extras = ["poetry_plugin"] }
poetry = "^1.5.1"
[tool.black]
line-length = 119
target-version = ['py310']
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 119
[tool.mypy]
strict = true
ignore_missing_imports = true
allow_subclassing_any = true
allow_untyped_calls = true
pretty = true
show_error_codes = true
implicit_reexport = true
allow_untyped_decorators = true
warn_return_any = true
exclude = ["tests/*"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore:.*unclosed.*:ResourceWarning",
]
addopts = '''
--strict-markers
--tb=short
--cov=connectors
--cov=client
--cov-branch
--cache-clear
--cov-report=html
--cov-report=term-missing:skip-covered
--cov-fail-under=5
--numprocesses=auto
--asyncio-mode=auto
--capture=sys
'''
[tool.poe.tasks.lint]
sequence = [
{ cmd = "poetry run autoflake --in-place --remove-all-unused-imports --remove-duplicate-keys --remove-unused-variables */**/*.py" },
{ cmd = "poetry run black ." },
{ cmd = "poetry run isort ." },
{ cmd = "poetry run mypy ." },
]
help = "Make code linting and formatting."
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"