-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (91 loc) · 2.59 KB
/
pyproject.toml
File metadata and controls
102 lines (91 loc) · 2.59 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
[project]
name = "data-modeling-storage-service"
version = "1.28.4" # x-release-please-version
description = "A model based storage service"
authors = [ { name = "Stig Ofstad", email = "stoo@equinor.com" }, { name = "Christopher Collin Løkken", email = "chcl@equinor.com" }, { name = "Eirik Ola Aksnes", email = "eaks@equinor.com" }]
license = { text = "MIT" }
[tool.poetry]
requires-poetry = ">=2.0"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
pymongo = "4.16.0"
azure-storage-blob = "^12.18.3"
fastapi = "^0.135.1"
python-multipart = "^0.0.22"
uvicorn = "^0.41.0"
click = ">8.0.0"
aiofiles = "^25.1.0"
python-jose = "^3.3.0"
cachetools = "^7.0.2"
cryptography = "^46.0.5"
cffi = "^2.0.0"
httpx = "^0.28.1"
pydantic = "^2.6.1"
azure-monitor-opentelemetry = "^1.8.2"
opentelemetry-instrumentation-fastapi = "^0.60b1"
pyinstrument = "5.1.2"
pydantic-settings = "^2.2.1"
redis = {extras = ["hiredis"], version = "^7.2.1"}
sqlalchemy = "^2.0.48"
psycopg2-binary = "^2.9.9"
[tool.poetry.group.dev.dependencies]
pydevd = "^3.4.1"
behave = "^1.2.6"
terminaltables = "^3.1.10"
deepdiff = "^8.6.2"
pygments = "^2.16.1"
pytest = "^9.0.2"
dictdiffer = "^0.9.0"
setuptools = "^82.0.0"
icecream = "^2.1.3"
pre-commit = "^4.5.1"
[tool.pytest.ini_options]
addopts = "--ignore gen"
# Makes pytest CLI discover markers and conftest settings:
markers = [
"unit: mark a test as unit test.",
"integration: mark a test as integration test."
]
testpaths = [
"tests/unit",
"tests/integration"
]
pythonpath = [
"src"
]
[tool.ruff]
src = ["src"]
target-version = "py312"
line-length = 120 # This is the prefered line-length. ruff will _try_ to make this
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"S", # Bandit
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # automatically upgrade syntax for newer versions of the language
"RUF", # ruff specific rules
]
ignore = [
"W191", # conflict with ruff formatter
"B008", # do not perform function calls in argument defaults
"E501", # line too long (ruff formater is doing the best it can. Fix them yourself if you dont like the line length)
"C901", # Code complexity
"RUF012", # Pydantic class variables
"S101", # Use of "assert"
]
[tool.mypy]
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
namespace_packages = true
explicit_package_bases = true
no_implicit_optional = false
check_untyped_defs = true
allow_redefinition = true
[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"