-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
101 lines (86 loc) · 2.45 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "process-dcm"
version = "0.4.2"
description = "Python library and app to extract images from DCM in private-eye format"
authors = ["Alan Silva <[email protected]>"]
readme = "README.md"
packages = [{ include = "process_dcm" }]
license = "MIT"
repository = "https://github.com/pontikos-lab/process-dcm"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = "^3.10"
opencv-python-headless = "^4.10.0.84"
typer = "^0.12.5"
pydicom = "^3.0.1"
natsort = "^8.4.0"
pillow = "^10.4.0"
python-gdcm = "^3.0.24.1"
[tool.poetry.scripts]
process-dcm = "process_dcm.main:cli"
[tool.poetry.group.dev.dependencies]
boto3-stubs = { extras = ["lambda", "s3"], version = "1.35.29" }
ipdb = "0.13.13"
ipython = "8.27.0"
jupyterlab = "4.2.5"
mypy = "1.11.2"
mypy-boto3-lambda = "1.35.28"
mypy-boto3-s3 = "1.35.22"
pandas-stubs = "2.2.2.240909"
pdbpp = "0.10.3"
pip = "24.2"
pre-commit = "3.8.0"
pytest-cov = "5.0.0"
pytest-env = "1.1.5"
pytest-xdist = "3.6.1"
ruff = "0.6.8"
typed-argument-parser = "1.10.1"
wheel = "0.44.0"
pytest-mock = "^3.14.0"
[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 = "py311"
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.11"
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 = ["sklearn.*",]
# 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 = "poetry"
update_changelog_on_bump = true
major_version_zero = true