-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (82 loc) · 2.19 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (82 loc) · 2.19 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
[tool.poetry]
name = "dataconnect-library-python"
version = "1.0.0"
description = "Python library built by Medidata for connecting to Data Connect and programmatically querying and retrieving data."
authors = ["Team 348 (SDK) <List_custom_t348_cds_sdk@3ds.com>"]
packages = [{include = "dataconnect"}]
[[tool.poetry.source]]
# Needs AUTH in ENV (using UPPERCASE name):
# https://python-poetry.org/docs/repositories/#configuring-credentials
# export POETRY_HTTP_BASIC_MDSOL_PASSWORD=$ARTIFACTORY_PASSWORD
# export POETRY_HTTP_BASIC_MDSOL_USERNAME=$ARTIFACTORY_USERNAME
name = "mdsol"
url = "https://mdsol.jfrog.io/artifactory/api/pypi/pypi-prod-virtual/simple"
#
# Dependancies
#
[tool.poetry.dependencies]
python = "^3.13"
pyarrow = ">=19,<25"
pandas = ">=2.0.2,<4.0.0"
# SERVICE
[tool.poetry.group.service]
optional = true
[tool.poetry.group.service.dependencies]
gunicorn =">=20.1,<27.0"
# ML
[tool.poetry.group.ml]
optional = true
[tool.poetry.group.ml.dependencies]
# DEV
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = ">=1.20.2,<3.0.0"
pre-commit = ">=3.3.2,<5.0.0"
pytest = ">=7.3.2,<10.0.0"
pytest-cov = ">=4.1,<8.0"
ruff = "0.15.17"
# TEST
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = ">=7.3.2,<10.0.0"
pytest-xdist = "^3.3.1"
pytest-cov = ">=4.1,<8.0"
pytest-benchmark = ">=4,<6"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--strict-markers"
markers = "benchmark: mark tests that run performance benchmarks"
[tool.ruff]
target-version = "py313"
line-length = 120
exclude = [
".venv",
".git",
".github",
"__pycache__",
"site-packages",
"build",
"dist",
"*.egg-info",
".mypy_cache",
"doc/",
".deploy",
"*.md",
"*.sql",
"*.yaml"
]
[tool.ruff.lint]
select = ["B", "E", "W", "F", "I", "UP", "ANN"]
ignore = ["ANN401"] # allow Any in public API
# -----------------------------------------------------------------------
# mypy
# -----------------------------------------------------------------------
[tool.mypy]
python_version = "3.13"
strict = true
ignore_missing_imports = true