promptflow

Форк
0
/
pyproject.toml 
94 строки · 2.2 Кб
1
# dummpy toml file, will be replaced by setup.py during release
2
# poetry
3
[tool.poetry]
4
name = "promptflow-rag"
5
version = "0.2.0.dev0"
6
description = "Prompt flow RAG"
7
license = "MIT"
8
authors = [
9
  "Microsoft Corporation <azuremlsdk@microsoft.com>"
10
]
11
repository = "https://github.com/microsoft/promptflow"
12
homepage = "https://microsoft.github.io/promptflow/"
13
readme = ["README.md"]
14
keywords = ["telemetry"]
15
classifiers = [
16
  "Programming Language :: Python",
17
  "Programming Language :: Python :: 3",
18
  "Programming Language :: Python :: 3 :: Only",
19
  "Programming Language :: Python :: 3.8",
20
  "Programming Language :: Python :: 3.9",
21
  "Programming Language :: Python :: 3.10",
22
  "Programming Language :: Python :: 3.11",
23
  "License :: OSI Approved :: MIT License",
24
  "Operating System :: OS Independent",
25
]
26
packages = [
27
  { include = "promptflow" }
28
]
29

30
[tool.poetry.urls]
31
"Bug Reports" = "https://github.com/microsoft/promptflow/issues"
32

33
# dependencies
34
[tool.poetry.dependencies]
35
python = "<4.0,>=3.8"
36
azureml-rag = ">= 0.2.30.2"
37
azure-search-documents = ">=11.4.0"
38
langchain = ">=0.0.236,<=0.1.15"
39
langchain-community = "<=0.0.33"
40

41
[tool.poetry.group.dev.dependencies]
42
pre-commit = "*"
43
import-linter = "*"
44

45
[tool.poetry.group.test.dependencies]
46
pytest = "*"
47
pytest-asyncio = "*"
48
pytest-cov = "*"
49
pytest-mock = "*"
50
pytest-xdist = "*"
51

52
# test: pytest and coverage
53
[tool.pytest.ini_options]
54
markers = [
55
  "unittest",
56
  "e2etest",
57
]
58
# junit - analyse and publish test results (https://github.com/EnricoMi/publish-unit-test-result-action)
59
# durations - list the slowest test durations
60
addopts = """
61
--junit-xml=test-results.xml \
62
--dist loadfile \
63
--log-level=info \
64
--log-format="%(asctime)s %(levelname)s %(message)s" \
65
--log-date-format="[%Y-%m-%d %H:%M:%S]" \
66
--durations=5 \
67
-ra \
68
-vv
69
"""
70
env = [
71
]
72
testpaths = ["tests"]
73

74
[tool.coverage.run]
75
concurrency = ["multiprocessing"]
76
source = ["promptflow"]
77
omit = [
78
  "__init__.py",
79
]
80

81
[tool.black]
82
line-length = 120
83

84
# import linter
85
# reference: https://pypi.org/project/import-linter/
86
[tool.importlinter]
87
root_package = "promptflow"
88
include_external_packages = "True"
89

90
[[tool.importlinter.contracts]]
91
name = "Contract forbidden modules"
92
type = "forbidden"
93
source_modules = ["promptflow.rag"]
94
forbidden_modules = []
95

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.