-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
46 lines (43 loc) · 1.37 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
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
[project]
name = "context_chat_backend"
version = "4.0.3"
requires-python = ">=3.11"
authors = [
{ name = "Anupam Kumar", email = "[email protected]" }
]
description = "The Python backend for Context Chat"
readme = { file = "readme.markdown", content-type = "text/markdown" }
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Private :: Do Not Upload",
]
[tool.ruff]
target-version = "py311"
include = ["context_chat_backend/**/*.py", "main.py"]
line-length = 120
fix = true
[tool.ruff.lint]
select = ["A", "B", "C", "E", "F", "G", "I", "S", "PIE", "RET", "RUF", "UP" , "W"]
ignore = [
"W191", # Indentation contains tabs
"E201", # Whitespace after opening bracket
"E202", # Whitespace before closing bracket
"E731", # Do not assign a lambda expression, use a def
"C901", # Function is too complex
"G004", # Logging statement uses f-string formatting
"RUF012", # Mutable default argument
]
# remove G004 after better logging solution is implemented
fixable = [
"F401", # Unused import
"RUF100", # Unused noqa comments
]
[tool.pyright]
include = ["context_chat_backend/**/*.py", "main.py"]
exclude = ["context_chat_backend/arq_worker.py"]
pythonVersion = "3.11"
pythonPlatform = "Linux"