promptflow
94 строки · 2.2 Кб
1# dummpy toml file, will be replaced by setup.py during release
2# poetry
3[tool.poetry]
4name = "promptflow-rag"
5version = "0.2.0.dev0"
6description = "Prompt flow RAG"
7license = "MIT"
8authors = [
9"Microsoft Corporation <azuremlsdk@microsoft.com>"
10]
11repository = "https://github.com/microsoft/promptflow"
12homepage = "https://microsoft.github.io/promptflow/"
13readme = ["README.md"]
14keywords = ["telemetry"]
15classifiers = [
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]
26packages = [
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]
35python = "<4.0,>=3.8"
36azureml-rag = ">= 0.2.30.2"
37azure-search-documents = ">=11.4.0"
38langchain = ">=0.0.236,<=0.1.15"
39langchain-community = "<=0.0.33"
40
41[tool.poetry.group.dev.dependencies]
42pre-commit = "*"
43import-linter = "*"
44
45[tool.poetry.group.test.dependencies]
46pytest = "*"
47pytest-asyncio = "*"
48pytest-cov = "*"
49pytest-mock = "*"
50pytest-xdist = "*"
51
52# test: pytest and coverage
53[tool.pytest.ini_options]
54markers = [
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
60addopts = """
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"""
70env = [
71]
72testpaths = ["tests"]
73
74[tool.coverage.run]
75concurrency = ["multiprocessing"]
76source = ["promptflow"]
77omit = [
78"__init__.py",
79]
80
81[tool.black]
82line-length = 120
83
84# import linter
85# reference: https://pypi.org/project/import-linter/
86[tool.importlinter]
87root_package = "promptflow"
88include_external_packages = "True"
89
90[[tool.importlinter.contracts]]
91name = "Contract forbidden modules"
92type = "forbidden"
93source_modules = ["promptflow.rag"]
94forbidden_modules = []
95