-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
73 lines (63 loc) · 1.87 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
[tool.poetry]
name = "decanter-ai-sdk"
version = "0.1.19"
description = "Decanter AI is a powerful AutoML tool which enables everyone to build ML models and make predictions without data science background. With Decanter AI SDK, you can integrate Decanter AI into your application more easily with Python."
homepage = "https://github.com/MoBagel/decanter-ai-sdk"
authors = ["senchao <[email protected]>"]
readme = "README.md"
include = [
"README.md"
]
[tool.poetry.dependencies]
python = "^3.8"
pandas = "^1.4.3"
requests-toolbelt = "^0.9.1"
tqdm = "^4.64.0"
pydantic = "^1.9.2"
urllib3 = "1.26.15"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.16.0"
black = "^22.6.0"
pytest = "^7.1.2"
pytest-xdist = "^2.5.0"
coveralls = "^3.3.1"
pytest-cov = "^3.0.0"
pynvim = "^0.4.3"
pytest-mock = "^3.10.0"
poetry = "1.4.2"
python-dotenv = "^1.0.0"
mypy = "^1.2.0"
types-requests = "<2.31.0.7"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.env]
SRC = "decanter_ai_sdk"
DIFF.default = ""
INPLACE.default = "--in-place"
[tool.poe.tasks]
_black = 'black $SRC $DIFF --color'
_mypy-install-type = 'mypy $SRC --ignore-missing-imports --install-types --non-interactive'
_mypy = 'mypy $SRC --ignore-missing-imports'
[tool.poe.tasks.test]
help = "Testing tasks."
shell = """
echo run unit tests
pytest -k 'not integration' --cov=$SRC --cov-report term-missing --ignore=integration
"""
[tool.poe.tasks.test-e2e]
help = "Functional testing on real Decanter AI endpoint"
shell = """
echo run functional tests
pytest -k 'integration' --cov=$SRC --cov-report term-missing --ignore=integration
"""
[tool.poe.tasks.lint]
help = "Lints the `decanter_ai_sdk` directory"
sequence = ["_mypy-install-type", "_mypy", "_black"]
env = { DIFF = "--diff", INPLACE = "" }
[tool.poe.tasks.format]
help = "Formatting"
shell = """
echo run a formatter
black ./decanter_ai_sdk
"""