-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (92 loc) · 2.58 KB
/
pyproject.toml
File metadata and controls
108 lines (92 loc) · 2.58 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
102
103
104
105
106
107
108
[project]
name = "process-dcm"
version = "0.10.0"
description = "Python library and app to extract images from DCM in a JSON-based standard format"
authors = [
{ name = "Alan Silva", email = "3899850+alanwilter@users.noreply.github.com" },
]
readme = "README.md"
requires-python = ">=3.10,<4.0"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"opencv-python-headless>=4.12.0.88",
"typer>=0.16.0",
"pydicom>=3.0.1",
"pillow>=11.3.0",
"python-gdcm>=3.0.25",
]
[project.urls]
repository = "https://github.com/pontikos-lab/process-dcm"
[project.scripts]
process-dcm = "process_dcm.main:cli"
[tool.poetry]
requires-poetry = ">=2.0"
packages = [{ include = "process_dcm" }]
[tool.poetry.group.dev.dependencies]
boto3-stubs = { extras = ["lambda", "s3"], version = "1.39.3" }
ipdb = "0.13.13"
ipython = "8.37.0"
mypy = "1.16.1"
mypy-boto3-lambda = "1.39.0"
mypy-boto3-s3 = "1.39.2"
pandas-stubs = "2.3.0.250703"
pdbpp = "0.11.6"
pip = "25.1.1"
pre-commit = "4.2.0"
pytest-cov = "6.2.1"
pytest-env = "1.1.5"
pytest-xdist = "3.8.0"
ruff = "0.12.2"
typed-argument-parser = "1.10.1"
wheel = "0.45.1"
pytest-mock = "^3.14.1"
[tool.pytest.ini_options]
addopts = "tests --cov=process_dcm/ --cov-report=term-missing:skip-covered --cov-report=xml --dist=loadgroup -n 8 --durations=5"
[tool.coverage.report]
omit = ["__main__.py"]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = ["UP", "RUF", "I", "D", "E501"]
ignore = ["UP036"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D103", "D104"]
"__main__.py" = ["D100"]
"__init__.py" = ["D104"]
[tool.mypy]
python_version = "3.10"
# exclude = 'tests/'
strict = true
disable_error_code = ["type-arg"]
# NOTE: uncomment these lines and edit accordingly if you have modules still without typings
[[tool.mypy.overrides]]
module = ["pytest_mock.*"]
ignore_missing_imports = true
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_files = [
"process_dcm/__init__.py",
"pyproject.toml",
"process_dcm/main.py",
]
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = true
[tool.poetry.requires-plugins]
poetry-bumpversion = ">=0.3.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"