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

103 lines
2.5 KiB
TOML

[tool.poetry]
name = "document_conversion"
version = "0.1.0"
description = "Document conversion service service that runs Tika, calls Gotenberg, and extracts strings"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.12,<4.0"
fastapi = "^0.115.6"
uvicorn = "^0.34.0"
dapr = "^1.15.0"
dapr-ext-fastapi = "^1.15.0"
dapr-ext-workflow = "^1.15.0"
structlog = "^25.1.0"
pydantic = "^2.10.4"
typing-extensions = "^4.12.2"
minio = "^7.2.14"
common = { path = "../../libs/common", develop = true }
jpype1 = "^1.5.2"
requests = "^2.32.3"
psycopg = "^3.2.4"
pypdf2 = "^3.0.1"
olefile = "^0.47"
msoffcrypto-tool = "^5.4.2"
[tool.poetry.group.dev.dependencies]
ruff = "^0.9.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
document_conversion = "document_conversion.main:main"
[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"