-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
95 lines (86 loc) · 2 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
[tool.poetry]
name = "Automation Module for Cortex EDR"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
sekoia-automation-sdk = { version="^1.13.0", extras=["all"] }
requests-ratelimiter = "^0.4.2"
freezegun = "^1.4.0"
[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-asyncio = "*"
pytest-xdist = "*"
pytest-env = "*"
pytest-flake8 = "*"
requests = "*"
requests-mock = "*"
Faker = "^13.12.0"
aioresponses = "^0.7.4"
autoflake = "^1.4"
isort = "^5.10.1"
black = { version = "^24.3.0", extras = ["colorama"] }
mypy = "^0.991"
types-aiofiles = "^23.1.0.4"
types-python-dateutil = "^2.8.19.13"
poethepoet = { version = "^0.16.5", extras = ["poetry_plugin"] }
poetry = "^1.5.1"
[build-system]
requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"
[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=aws_helpers
--cov=connectors
--cov-branch
--cache-clear
--cov-report=html
--cov-report=term-missing:skip-covered
--cov-fail-under=5
--numprocesses=auto
--asyncio-mode=auto
'''
[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."
[tool.coverage.run]
omit = [
"tests/*",
"main.py",
]