|
@@ -14,9 +14,11 @@ line-length = 120
|
|
|
preview = true
|
|
|
select = [
|
|
|
"B", # flake8-bugbear rules
|
|
|
+ "C4", # flake8-comprehensions
|
|
|
"F", # pyflakes rules
|
|
|
"I", # isort rules
|
|
|
- "UP", # pyupgrade rules
|
|
|
+ "UP", # pyupgrade rules
|
|
|
+ "B035", # static-key-dict-comprehension
|
|
|
"E101", # mixed-spaces-and-tabs
|
|
|
"E111", # indentation-with-invalid-multiple
|
|
|
"E112", # no-indented-block
|
|
@@ -28,8 +30,13 @@ select = [
|
|
|
"RUF100", # unused-noqa
|
|
|
"RUF101", # redirected-noqa
|
|
|
"S506", # unsafe-yaml-load
|
|
|
+ "SIM116", # if-else-block-instead-of-dict-lookup
|
|
|
+ "SIM401", # if-else-block-instead-of-dict-get
|
|
|
+ "SIM910", # dict-get-with-none-default
|
|
|
"W191", # tab-indentation
|
|
|
"W605", # invalid-escape-sequence
|
|
|
+ "F601", # multi-value-repeated-key-literal
|
|
|
+ "F602", # multi-value-repeated-key-variable
|
|
|
]
|
|
|
ignore = [
|
|
|
"F403", # undefined-local-with-import-star
|
|
@@ -82,8 +89,8 @@ HUGGINGFACE_TEXT2TEXT_GEN_ENDPOINT_URL = "b"
|
|
|
HUGGINGFACE_EMBEDDINGS_ENDPOINT_URL = "c"
|
|
|
MOCK_SWITCH = "true"
|
|
|
CODE_MAX_STRING_LENGTH = "80000"
|
|
|
-CODE_EXECUTION_ENDPOINT="http://127.0.0.1:8194"
|
|
|
-CODE_EXECUTION_API_KEY="dify-sandbox"
|
|
|
+CODE_EXECUTION_ENDPOINT = "http://127.0.0.1:8194"
|
|
|
+CODE_EXECUTION_API_KEY = "dify-sandbox"
|
|
|
FIRECRAWL_API_KEY = "fc-"
|
|
|
|
|
|
[tool.poetry]
|
|
@@ -114,11 +121,11 @@ cachetools = "~5.3.0"
|
|
|
weaviate-client = "~3.21.0"
|
|
|
mailchimp-transactional = "~1.0.50"
|
|
|
scikit-learn = "1.2.2"
|
|
|
-sentry-sdk = {version = "~1.39.2", extras = ["flask"]}
|
|
|
+sentry-sdk = { version = "~1.39.2", extras = ["flask"] }
|
|
|
sympy = "1.12"
|
|
|
jieba = "0.42.1"
|
|
|
celery = "~5.3.6"
|
|
|
-redis = {version = "~5.0.3", extras = ["hiredis"]}
|
|
|
+redis = { version = "~5.0.3", extras = ["hiredis"] }
|
|
|
chardet = "~5.1.0"
|
|
|
python-docx = "~1.1.0"
|
|
|
pypdfium2 = "~4.17.0"
|
|
@@ -138,7 +145,7 @@ googleapis-common-protos = "1.63.0"
|
|
|
google-cloud-storage = "2.16.0"
|
|
|
replicate = "~0.22.0"
|
|
|
websocket-client = "~1.7.0"
|
|
|
-dashscope = {version = "~1.17.0", extras = ["tokenizer"]}
|
|
|
+dashscope = { version = "~1.17.0", extras = ["tokenizer"] }
|
|
|
huggingface-hub = "~0.16.4"
|
|
|
transformers = "~4.35.0"
|
|
|
tokenizers = "~0.15.0"
|
|
@@ -152,10 +159,10 @@ qdrant-client = "1.7.3"
|
|
|
cohere = "~5.2.4"
|
|
|
pyyaml = "~6.0.1"
|
|
|
numpy = "~1.26.4"
|
|
|
-unstructured = {version = "~0.10.27", extras = ["docx", "epub", "md", "msg", "ppt", "pptx"]}
|
|
|
+unstructured = { version = "~0.10.27", extras = ["docx", "epub", "md", "msg", "ppt", "pptx"] }
|
|
|
bs4 = "~0.0.1"
|
|
|
markdown = "~3.5.1"
|
|
|
-httpx = {version = "~0.27.0", extras = ["socks"]}
|
|
|
+httpx = { version = "~0.27.0", extras = ["socks"] }
|
|
|
matplotlib = "~3.8.2"
|
|
|
yfinance = "~0.2.40"
|
|
|
pydub = "~0.25.1"
|
|
@@ -180,7 +187,7 @@ pgvector = "0.2.5"
|
|
|
pymysql = "1.1.1"
|
|
|
tidb-vector = "0.0.9"
|
|
|
google-cloud-aiplatform = "1.49.0"
|
|
|
-vanna = {version = "0.5.5", extras = ["postgres", "mysql", "clickhouse", "duckdb"]}
|
|
|
+vanna = { version = "0.5.5", extras = ["postgres", "mysql", "clickhouse", "duckdb"] }
|
|
|
kaleido = "0.2.1"
|
|
|
tencentcloud-sdk-python-hunyuan = "~3.0.1158"
|
|
|
tcvectordb = "1.3.2"
|