forked from fuzzylabs/MindGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
127 lines (108 loc) · 2.7 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
[tool.poetry]
name = "MindGPT"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
license = "Apache-2.0 license"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.11" # ZenML requires <3.11
pandas = "1.5.2"
pandas-stubs = "^2.0.2.230605" # required by mypy
requests-html = "^0.10.0"
lxml = "^4.9.2"
types-beautifulsoup4 = "^4.12.0.5"
types-requests = "^2.31.0.1"
types-urllib3 = "^1.26.25.13"
transformers = "^4.30.2"
sentencepiece = "^0.1.99"
streamlit = "^1.24.0"
dvc = {version = ">=3.4.0", extras = ["azure"]}
instructorembedding = "^1.0.1"
sentence-transformers = "^2.2.2"
zenml = "^0.42.1"
chromadb = "^0.4.3"
textstat = "0.7.3"
flask = "2.3.2"
psycopg2 = "2.9.6"
types-psycopg2 = "2.9.21.11"
gunicorn = "^21.2.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.1.1"
pytest = "^7.2.2"
pytest-cov = "^4.0.0"
mypy = "1.1.1"
typos = "^1.16.1"
matplotlib = "^3.7.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
show_error_codes = true
exclude = ["docs", "test"]
strict = true
namespace_packages = true
ignore_missing_imports = true
[tool.ruff]
# use Python 3.8 as the minimum version for autofixing
target-version = "py38"
select = [
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"Q", # flake8-quotes
"ISC", # flake8-implicit-str-concat
"F", # pyflakes
"D", # pydocstyle
"E", # pycodestyle error
"W", # pycodestyle warning
"N", # pep8-naming
"I", # isort
"PL", # pylint rules from categories "Convention", "Error", and "Warning"
"PLE", # ruff currently implements only a subset of pylint's rules
"PLW", # pylint warning
"PLR", # pylint refactor
"UP", # pyupgrade
"C", # Complexity (mccabe+) & comprehensions
]
# Match black. Note that this also checks comment line length, but black does not format comments.
line-length = 88
show-fixes = true
ignore = [
"E501", # Line too long
"UP006", # See https://github.com/bokeh/bokeh/issues/13143
"UP007", # See https://github.com/bokeh/bokeh/pull/13144
"PLR0913", # max-args = 5
"PLR2004" # Readability score test value comparison
]
ignore-init-module-imports = true
# Allow imports relative to the "src" and "test" directories.
src = ["src", "test"]
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''
[[tool.mypy.overrides]]
module = [
"python_terraform.*",
"transformers.*",
"chromadb.*",
"textstat.*",
"metric_service.*",
"scipy.*"
]