-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
95 lines (84 loc) · 2.01 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 = "dreadnode-cli"
version = "0.1.1"
description = "Dreadnode CLI"
authors = [
"Nick Landers <[email protected]>",
"Simone Margaritelli <[email protected]>",
]
license = "MIT"
repository = "https://github.com/dreadnode/cli"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
typer = "^0.12.5"
pydantic = "^2.9.2"
jinja2 = "^3.1.4"
types-requests = "^2.32.0.20240914"
httpx = "^0.27.2"
ruamel-yaml = "^0.18.6"
docker = "^7.1.0"
pydantic-yaml = "^1.4.0"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
ruff = "^0.1.14"
pre-commit = "^3.8.0"
pytest = "^8.3.3"
pytest-asyncio = "^0.24.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
dreadnode = 'dreadnode_cli.__main__:run'
dn = 'dreadnode_cli.__main__:run'
[tool.poetry.plugins."pipx.run"]
dreadnode-cli = 'dreadnode_cli.__main__:run'
[tool.mypy]
strict = true
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py310"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"NPY", # numpydoc
"A", # flake8-annotations
]
ignore = [
"E501", # line too long, handled by ruff
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"F722", # syntax error in forward annotation
"A001", # shadowing built-in
"A002", # shadowing built-in
]
exclude = [
".git",
".git-rewrite",
".mypy_cache",
".ruff_cache",
"__pypackages__",
"build",
"dist",
".venv",
"venv",
]
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = ["B"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"