forked from rdmorganiser/rdmo-plugins-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (108 loc) · 2.66 KB
/
pyproject.toml
File metadata and controls
120 lines (108 loc) · 2.66 KB
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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel"]
[project]
name = "rdmo-chatbot"
description = ""
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [
{name = "RDMO. Research Data Management Organiser e.V.", email = "rdmo-contact@listserv.dfn.de"},
]
requires-python = ">=3.9"
classifiers = [
"Environment :: Web Environment",
"Framework :: Django :: 4.2",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
]
dependencies = [
"chainlit>=2.8.2"
]
[project.optional-dependencies]
openai = [
"langchain-openai",
]
ollama = [
"langchain-ollama",
]
redis = [
"redis"
]
dev = [
"build",
"pre-commit",
"ruff",
"twine",
]
[project.urls]
repository = "https://github.com/rdmorganiser/rdmo-chatbot.git"
[tool.setuptools.packages.find]
include = ["rdmo_chatbot*"]
exclude = ["*assets*", "*tests*"]
[tool.setuptools.package-data]
"*" = ["*"]
[tool.setuptools_scm]
version_file = "rdmo_chatbot/_version.py"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"PT", # flake8-pytest-style
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
"G", # flake8-logging-format
"INT", # flake8-gettext
"Q" # flake8-quotes
]
ignore = [
"B006", # mutable-argument-default
"B007", # unused-loop-control-variable
"B018", # useless-expression
"RUF012", # mutable-class-default
]
[tool.ruff.lint.isort]
known-first-party = ["rdmo"]
section-order = [
"future",
"standard-library",
"pytest",
"django",
"rest_framework",
"third-party",
"first-party",
"local-folder"
]
[tool.ruff.lint.isort.sections]
pytest = ["pytest"]
django = ["django"]
rest_framework = ["rest_framework"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
parametrize-names-type = "csv"
[tool.typos] # Ref: https://github.com/crate-ci/typos/blob/master/docs/reference.md
# add "spellchecker:disable-line" to ignore specific lines
default.extend-ignore-re = [
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$", # for .py files
"(?Rm)^.*<!-- spellchecker:disable-line -->$", # for .html files
]