🐛 Make project setup more restrictive Add black settings

This commit is contained in:
Ruben Lucas 2025-03-28 13:47:08 +01:00
parent d37012f780
commit cfcaf84f2d

View File

@ -3,7 +3,7 @@ name = "Sogeti-generic-RAG-demo"
version = "0.1.0" version = "0.1.0"
description = "A Sogeti generic RAG demo" description = "A Sogeti generic RAG demo"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12,<3.13"
dependencies = [ dependencies = [
"beautifulsoup4>=4.13.3", "beautifulsoup4>=4.13.3",
"chainlit>=2.3.0", "chainlit>=2.3.0",
@ -25,8 +25,10 @@ dependencies = [
] ]
[tool.setuptools] [tool.setuptools]
packages = ["."] packages = ["generic_rag"]
exclude = ["data"]
[tool.setuptools.exclude-package-data]
generic_rag = ["data"]
[tool.ruff] [tool.ruff]
line-length = 120 line-length = 120
@ -37,7 +39,11 @@ skip-magic-trailing-comma = true
line-ending = "auto" line-ending = "auto"
docstring-code-format = false docstring-code-format = false
[tool.black]
line-length = 120
[dependency-groups] [dependency-groups]
dev = [ dev = [
"ruff>=0.11.0", "ruff>=0.11.0",
"black>=22.0",
] ]