-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
178 lines (156 loc) Β· 3.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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[tool.poetry]
name = "app"
version = "0.0.0"
description = "Welcome to Junction Move 38!"
authors = ["Move38 <[email protected]>"]
readme = "README.md"
packages = [{ include = "app" }]
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
opencv-python = "^4.8.1.78"
fastapi = "^0.104.0"
stegano = "^0.11.2"
seahash = "^0.2.0"
numpy = "^1.26.1"
sqlmodel = "^0.0.8"
diffusers = "^0.21.4"
transformers = "^4.34.1"
scipy = "^1.11.3"
accelerate = "^0.23.0"
streamlit = "^1.27.2"
sqlitedict = "^2.1.0"
torch = {version = "^2.1.0+cpu", source = "torch_cpu"}
insightface = "^0.7.3"
onnxruntime = "^1.16.1"
[tool.poetry.group.dev.dependencies]
black = "^22.8.0"
isort = "^5.10.1"
pydocstyle = "^6.1.1"
pylint = "^2.17.5"
pytest = "^7.1.3"
jupyter = "^1.0.0"
python-semantic-release = "^8.0.4"
pre-commit = "^2.20.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.3.1"
mkdocstrings = { extras = ["python"], version = "^0.20.0" }
mkdocstrings-python = "^0.7.1"
mkdocs-material = "^8.4.2"
mkdocs-jupyter = "^0.22.0"
pymdown-extensions = "^9.10"
mkdocs-gen-files = "^0.4.0"
mkdocs-section-index = "^0.3.5"
mkdocs-awesome-pages-plugin = "^2.8.0"
griffe = "^0.30.0"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[[tool.poetry.source]]
name = "torch_cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[[tool.poetry.source]]
name = "torch_gpu"
url = "https://download.pytorch.org/whl/cu118"
priority = "explicit"
[[tool.poetry.source]]
name = "sngular-daiot"
url = "https://europe-southwest1-python.pkg.dev/sngular-daiot/daiot-python/simple/"
priority = "explicit"
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variable = ["app/__init__.py:__version__"]
commit_subject = "π v{version}"
tag_format = "{version}"
commit_parser = "emoji"
ignore_token_for_push = true
upload_to_vcs_release = false
[tool.semantic_release.commit_parser_options]
major_tags = ["π₯"] # breaking change
minor_tags = [
"β¨", # feature
"π", # hotfix
"π", # begin project
"π§ͺ",
] # test
patch_tags = [
"π", # bugfix,
"π©Ή", # simple fix
"π", # security
"π", # docs
"β‘οΈ", # performance
"π·",
] # ci/cd
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
[tool.semantic_release.branches.release]
match = "^(release).*$"
prerelease = true
prerelease_token = "rc"
[tool.semantic_release.branches.develop]
match = "(dev|develop)"
prerelease = true
prerelease_token = "alpha"
[tool.semantic_release.branches.hotfix]
match = "^(hotfix).*$"
prerelease = true
prerelease_token = "hotfix"
[tool.black]
line_length = 100
max-complexity = 10
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 100
extend_skip_glob = ["docs/*", "notebooks/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.pydocstyle]
convention = "google"
add-select = ["D400", "D401", "D411"]
[tool.pylint]
[tool.pylint.main]
load-plugins = [
"pylint.extensions.check_elif",
"pylint.extensions.bad_builtin",
"pylint.extensions.docparams",
"pylint.extensions.for_any_all",
"pylint.extensions.set_membership",
"pylint.extensions.code_style",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.typing",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.comparison_placement",
]
[tool.pylint.messages_control]
disable = [
"too-few-public-methods",
"too-many-arguments",
"consider-using-assignment-expr",
]
[tool.pylint.TYPECHECK]
# avoid no-member errors for cv2
generated-members = 'cv2.*'
[tool.pylint.BASIC]
good-names = [
"x",
"y",
"z",
"x1",
"y1",
"z1",
"x2",
"y2",
"z2",
"xs",
"ys",
"zs",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"