-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (81 loc) · 2.21 KB
/
pyproject.toml
File metadata and controls
90 lines (81 loc) · 2.21 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
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "ai4bmr-core"
description = "AI for Biomedical Research"
authors = [
{ name = "Adriano Martinelli", email = "adriano.martinelli@chuv.ch" },
]
readme = "README.md"
# due to how PEP 440 defines version matching, prefer [incl, excl) definitions like below:
requires-python = ">=3.10"
dependencies = [
"python-dotenv",
"pydantic",
"pydantic-settings",
"tqdm",
"networkx",
"scikit-learn",
"matplotlib",
"numpy"
]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
repository = "https://github.com/AI4SCR/ai4scr-data"
[project.optional-dependencies]
all = [
'scikit-image',
'tifffile',
]
test = [
"pytest",
"pytest-cov",
"pandas"
]
dev = [
"mypy",
"black",
"isort",
"flake8",
"pre-commit",
"setuptools_scm[toml]",
# "python-semantic-release", # rely on setuptools_scm for versioning
]
[tool.black]
line-length = 120
skip-string-normalization = false
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
force_to_top = []
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true
[tool.setuptools_scm]
version_scheme = "post-release"
write_to = "src/ai4bmr_core/_version.py" # Example path where version info could be written
#[tool.semantic_release]
## for default values check:
## https://github.com/relekang/python-semantic-release/blob/master/semantic_release/defaults.cfg
#version_variable = "package/__init__.py:__version__"
#commit_version_number = true
##upload_to_pypi = true
#version_source = "tag_only"
#branch = "main"
## configure types which should trigger minor and patch version bumps respectively
## (note that they must be a subset of the configured allowed types):
#parser_angular_allowed_types = "build,chore,ci,docs,feat,fix,perf,style,refactor,test"
#parser_angular_minor_types = "feat"
#parser_angular_patch_types = "fix,perf"