forked from v7labs/darwin-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (83 loc) · 2.95 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
[tool.poetry]
name = "darwin-py"
version = "0.8.19" # update this when you change the version - See: https://peps.python.org/pep-0440/
description = "Library and command line interface for darwin.v7labs.com"
homepage = "https://docs.v7labs.com/reference/getting-started-2"
documentation = "https://darwin-py-sdk.v7labs.com/index.html"
repository = "https://github.com/v7labs/darwin-py"
authors = ["V7 <[email protected]>"]
readme = "README.md"
license = "MIT"
keywords = []
classifiers = ["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License"]
packages = [
{ include = "darwin" },
]
[tool.poetry.dependencies]
python = ">=3.7.0,<3.12"
argcomplete = "^2.0.0"
humanize = "^4.4.0"
pillow = "^9.4.0"
pyyaml = ">=5.1"
requests = "^2.28.1"
rich = "^13.0.1"
dataclasses = {markers = "python_version < \"3.7\"", version = "^0.8"}
upolygon = "0.1.8"
jsonschema = ">=4.0.0"
deprecation = "^2.1.0"
pydantic = "^1.10.4"
orjson = "^3.8.5"
numpy = "<=1.23.0"
toml = "^0.10.2"
nibabel = {version = "^5.0.0", extras = ["medical"], python = ">=3.8.1"}
connected-components-3d = {version = "^3.10.3", extras = ["medical"]}
scikit-learn = {version = "^1.2.0", extras = ["ml", "test"], python = ">=3.8.1,<3.11"}
torch = {version = "^1.13.1", extras = ["ml"]}
torchvision = {version = "^0.14.1", extras = ["ml"]}
black = {version = "^22.12.0", extras = ["dev"]}
isort = {version = "^5.11.4", extras = ["dev"]}
flake8 = {version = "^6.0.0", extras = ["dev"], python = ">=3.8.1,<3.11"}
mypy = {version = "^0.991", extras = ["dev"]}
responses = {version = "^0.22.0", extras = ["test", "dev"]}
pytest = {version = "^7.2.1", extras = ["test", "dev"]}
pytest-describe = {version = "^2.0.1", extras = ["test", "dev"]}
flake8-pyproject = {version = "^1.2.2", extras = ["test", "dev"], python = ">=3.8.1,<3.11"}
debugpy = {version = "^1.6.5", extras = ["dev"]}
types-requests = {version = "^2.28.11.8", extras = ["dev"]}
mpire = {version = "^2.7.0"}
tqdm = "^4.64.1"
[tool.poetry.extras]
dev = ["black", "isort", "flake8", "mypy", "debugpy", "responses", "pytest", "pytest-describe", "flake8-pyproject"]
test = ["responses", "pytest", "pytest-describe", "flake8-pyproject"]
ml = ["torch", "torchvision", "scikit-learn"]
medical = ["nibabel", "connected-components-3d"]
[tool.poetry.scripts]
darwin = "darwin.cli:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# TOOL SETTINGS
[tool.isort]
profile = "black"
[tool.mypy]
ignore_missing_imports = true
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = true
disallow_any_generics = false
disallow_subclassing_any = true
python_version = "3.10"
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_return_any = false
warn_unreachable = true
pretty = true
[tool.black]
line-length = 160
[tool.flake8]
max-line-length = 160
ignore = ["E203", "W503", "E402"]