generated from tomasanchez/cosmic-fastapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
110 lines (96 loc) · 2.4 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[tool.poetry]
name = "heimdallr"
version = "1.1.0"
description = ""
authors = ["Tomas Sanchez <info@tomsanchez.com.ar>"]
readme = "README.md"
packages = [{ include = "heimdallr", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
fastapi = "^0.103.2"
uvicorn = "^0.23.2"
pydantic-settings = "^2.0.2"
pydantic = { extras = ["email"], version = "^2.4.2" }
spacy = "^3.6.1"
pymupdf = "^1.23.3"
motor = "^3.3.1"
python-multipart = "^0.0.6"
python-docx = "^1.0.1"
pytextract = "^2.0.1"
docx2txt = "^0.8"
scikit-learn = "^1.3.2"
nltk = "^3.8.1"
pandas = "^2.1.2"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
coverage = { extras = ["toml"], version = "^7.2.7" }
pre-commit = "^3.3.3"
black = "^23.7.0"
pylint = "^2.17.5"
isort = "^5.12.0"
mypy = "^1.4.1"
flake8 = "^6.1.0"
httpx = "^0.24.1"
pytest-cov = "^4.1.0"
notebook = "^7.0.3"
ipykernel = "^6.25.1"
pytest-asyncio = "^0.21.1"
numpy = "^1.26.1"
seaborn = "^0.13.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
[tool.coverage.run]
branch = true
omit = ['tests/*', 'src/heimdallr/asgi.py', 'src/**/__init__.py']
[tool.coverage.report]
show_missing = true
ignore_errors = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError", "if TYPE_CHECKING:", "if __name__ == .__main__.:"]
[tool.isort]
known_first_party = "template"
line_length = 120
multi_line_output = 3
use_parentheses = true
include_trailing_comma = true
ensure_newline_before_comments = true
force_grid_wrap = 0
[tool.mypy]
ignore_missing_imports = true
[tool.pylint.basic]
max-line-length = 120
argument-rgx = "[a-z_][a-z0-9_]{0,30}$"
function-rgx = "[a-z_][a-z0-9_]*$"
variable-rgx = "[a-z_][a-z0-9_]{0,30}$"
good-names = ["logger", "i", "j", "k", "ex", "Run", "T"]
bad-names = ["l", "I", "O"]
ignore-patterns = "test_.*?py"
[tool.pylint.logging]
logging-modules = "logging"
[tool.pylint.messages_control]
disable = [
"fixme",
"no-member",
"unused-argument",
"too-few-public-methods",
"duplicate-code",
"no-name-in-module",
"no-self-argument",
"missing-class-docstring",
'global-statement',
'too-many-arguments',
'too-many-ancestors',
]
[tool.pylint.reports]
reports = false
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = "tests"
python_files = "test_*.py"
junit_family = "xunit1"
log_cli = false
log_level = "DEBUG"