-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (88 loc) Β· 1.9 KB
/
pyproject.toml
File metadata and controls
101 lines (88 loc) Β· 1.9 KB
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
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = ">=3.11,<4"
pydantic-settings = ">=2.12.0,<3.0.0"
sqlalchemy = ">=2.0.46,<3.0.0"
structlog = ">=25.5.0,<26.0.0"
orjson = ">=3.11.7,<4.0.0"
pypdf2 = ">=3.0.1,<4.0.0"
python-docx = ">=1.1.2,<2.0.0"
openpyxl = ">=3.1.5,<4.0.0"
xlrd = "1.2.0"
xlwt = "1.3.0"
pandas = ">=2.2.0,<3.0.0"
patool = ">=3.0.2,<4.0.0"
reportlab = "^4.4.10"
[tool.poetry.group.dev.dependencies]
pytest = "^9.0.2"
pytest-asyncio = "^0.23.0"
pytest-cov = "^7.0.0"
mypy = ">=1.15.0"
ruff = ">=0.4.8"
pre-commit = "^4.5.1"
pytest-mock = "^3.15.1"
[tool.ruff]
src = ["app"]
target-version = "py311"
line-length = 79
exclude = ["__pycache__/", ".git/", "*.pyc"]
format.indent-style = "space"
format.skip-magic-trailing-comma = false
format.quote-style = "double"
preview = true
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP", "RUF"]
ignore = ["RUF001"]
[tool.ruff.lint.isort]
known-first-party = ["app"]
[tool.mypy]
python_version = "3.11"
warn_return_any = false
pretty = true
show_error_codes = true
disable_error_code = ["import-untyped"]
exclude = [
'build/',
'dist/',
'\.git',
]
[[tool.mypy.overrides]]
module = [
"xlrd",
"xlrd.*",
"xlwt",
"xlwt.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--tb=short",
"--cov=app",
"--cov-report=term-missing",
"--asyncio-mode=auto"
]
markers = [
"unit: unit tests",
"integration: integration tests",
"slow: slow running tests"
]
[tool.coverage.run]
source = ["app"]
omit = [
"*/__pycache__/*",
"*/tests/*",
]