-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
150 lines (137 loc) · 3.57 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[tool.poetry]
name = "caribou"
version = "1.1.0"
description = "Caribou is a framework for running and deploying complex serverless workflows multi-constraint and multi-objective aware on AWS over multiple regions."
license = "Apache-2.0"
authors = [
"Viktor Gsteiger <[email protected]>",
"Pin Hong (Daniel) Long <[email protected]>",
"Parshan Javanrood <[email protected]>",
"Yiran (Jerry) Sun <[email protected]>",
"Mohammad Shahrad <[email protected]>",
]
readme = "README.md"
repository = "https://github.com/ubc-cirrus-lab/caribou"
[tool.poetry.scripts]
caribou = "caribou.deployment.client.caribou:main"
[tool.poetry.dependencies]
python = "^3.12"
pyyaml = "^6.0"
boto3 = "^1.34"
jsonschema = "^4.21"
googlemaps = "^4.10"
google-auth = "^2.28"
numpy = "^1.26"
pandas = "^2.2.0"
click = "^8.1.7"
pydantic = "^2.6.4"
bs4 = "^0.0.2"
pytz = "^2024.1"
statsmodels = "^0.14.2"
awscli = "^1.34.3"
pypdf2 = "^3.0.1"
shortuuid = "^1.0.13"
langchain-community = "^0.2.16"
langchain-postgres = "^0.0.9"
faiss-cpu = "^1.8.0.post1"
cron-descriptor = "^1.4.5"
zstandard = "^0.23.0"
[tool.poetry.extras]
# This can be used for a more fine-grained dependency management in the future
[tool.poetry.group.dev.dependencies]
autopep8 = "^2.0.4"
pytest = "^7.4.4"
coverage = "^7.4.1"
mypy = "^1.8.0"
types-pyyaml = "^6.0.12.12"
types-jsonschema = "^4.21.0.0"
isort = "^5.13.2"
setuptools = "^69.1.0"
black = "^23.12.1"
pylint = "^3.0.3"
pytest-cov = "^4.1.0"
types-requests = "^2.31.0"
seaborn = "^0.13.1"
httpie = "^3.2.2"
gtts = "^2.5.1"
profanity = "^1.1"
pydub = "^0.25.1"
scikit-learn = "^1.4.0"
pillow = "^10.2.0"
pip-install-test = "^0.5"
dna-features-viewer = "^3.1.3"
networkx = "^3.2.1"
types-pytz = "^2024.1.0.20240203"
ipykernel = "^6.29.3"
tqdm = "^4.66.2"
statsmodels = "^0.14.1"
opencv-python = "^4.9.0.80"
torchvision = "^0.17.1"
pyaes = "^1.6.1"
markdown = "^3.6"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.autopep8]
max_line_length = 120
in-place = true
recursive = true
aggressive = 3
[tool.coverage.run]
branch = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.mypy]
python_version = "3.10"
mypy_path = "caribou"
check_untyped_defs = true
disallow_untyped_defs = true
follow_imports = "skip"
ignore_missing_imports = true
pretty = true
exclude = [
"caribou/tests",
"caribou/common/setup",
"caribou/common/models/remote_client/mock_remote_client.py",
]
[tool.isort]
profile = "black"
line_length = 120
skip_gitignore = true
extend_skip_glob = ["**/*/__init__.py", "**/tests/**", "**/*.pyi", "**/*.pyc"]
[tool.black]
line-length = 120
target-version = ["py38"]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| ./caribou/deployment/client/cli/template/app.py
)/
'''
[tool.pylint]
max-line-length = 120
disable = [
"C0116", # Missing function or method docstring
"C0114", # Missing module docstring
"C0115", # Missing class docstring
"W0621", # Redefining name %r from outer scope (line %s) (we need this for our logging)
"R0913", # Too many arguments
"R0801", # Similar lines in %s files (we will have this because of how serverless functions need to be self-contained)
"W0511", # TODO
"R0903", # Too few public methods (we need this for our dataclasses)
"R0914", # Too many local variables (too noisy)
]
ignore = ["tests", "caribou/deployment/client/cli/template"]
[tool.pytest.ini_options]
testpaths = ["caribou/tests"]
addopts = ["--cov=caribou", "--cov-report=html"]