Files
SpecterOps-Nemesis/projects/web_api/pyproject.toml
T
Lee Christensen 8035a6a168 add code
2025-06-13 11:33:07 +02:00

94 lines
2.2 KiB
TOML

[tool.poetry]
name = "web_api"
version = "0.1.0"
description = "The frontend API for Nemesis"
authors = ["SpecterOps"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
fastapi = { extras = ["all"], version = "^0.115.6" }
structlog = "^25.1.0"
dapr = "^1.15.0"
pydantic = "^2.10.4"
uvicorn = "^0.34.0"
python-multipart = "^0.0.20"
minio = "^7.2.14"
common = { path = "../../libs/common", develop = true }
tomli = "^2.2.1"
asyncpg = "^0.30.0"
requests = "^2.32.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"NPY", # numpydoc
"A", # flake8-annotations
"TCH001", # Move application-only imports into TYPE_CHECKING block
"TCH002", # Move third-party imports into TYPE_CHECKING block
"TCH003", # Move standard library imports into TYPE_CHECKING block
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"F722", # syntax error in forward annotation
"UP007", # X | Y syntax while we're still supporting 3.9
"UP038", # isinstance() X | Y instance ^
"B905", # zip() without strict (isn't supported in 3.9)
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 120
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = ["B"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
extend-select = [
"I", # isort, added per instructions in the VS code extension (https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"