Spaces:
Sleeping
Sleeping
Commit ·
235e229
1
Parent(s): 2d35181
updated project struct
Browse files- .editorconfig +12 -0
- .pre-commit-config.yaml +14 -0
- .ruff.toml +24 -0
- backend/__init__.py +0 -0
- backend/app/__init__.py +0 -0
- backend/app/api/__init__.py +0 -0
- backend/app/core/__init__.py +0 -0
- backend/app/evaluation/__init__.py +0 -0
- backend/app/ingestion/__init__.py +0 -0
- backend/app/models/__init__.py +0 -0
- backend/app/retrieval/__init__.py +0 -0
- backend/app/utils/__init__.py +0 -0
- pyproject.toml +13 -0
- requirements.txt +3 -0
.editorconfig
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
indent_style = space
|
| 5 |
+
indent_size = 4
|
| 6 |
+
charset = utf-8
|
| 7 |
+
end_of_line = lf
|
| 8 |
+
insert_final_newline = true
|
| 9 |
+
trim_trailing_whitespace = true
|
| 10 |
+
|
| 11 |
+
[*.md]
|
| 12 |
+
trim_trailing_whitespace = false
|
.pre-commit-config.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
repos:
|
| 2 |
+
- repo: https://github.com/psf/black
|
| 3 |
+
rev: 24.4.2
|
| 4 |
+
hooks:
|
| 5 |
+
- id: black
|
| 6 |
+
language_version: python3
|
| 7 |
+
args: ["--line-length=100"]
|
| 8 |
+
|
| 9 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 10 |
+
rev: v0.5.0
|
| 11 |
+
hooks:
|
| 12 |
+
- id: ruff
|
| 13 |
+
args: ["--fix"]
|
| 14 |
+
- id: ruff-format
|
.ruff.toml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ruff Configuration
|
| 2 |
+
|
| 3 |
+
[lint]
|
| 4 |
+
select = [
|
| 5 |
+
"E", # pycodestyle errors
|
| 6 |
+
"F", # pyflakes
|
| 7 |
+
"B", # bugbear
|
| 8 |
+
"D", # pydocstyle
|
| 9 |
+
"I", # isort
|
| 10 |
+
]
|
| 11 |
+
ignore = [
|
| 12 |
+
# Ignore missing docstring for __init__.py only
|
| 13 |
+
"D104",
|
| 14 |
+
"B008",
|
| 15 |
+
]
|
| 16 |
+
|
| 17 |
+
[lint.pydocstyle]
|
| 18 |
+
convention = "google"
|
| 19 |
+
|
| 20 |
+
[format]
|
| 21 |
+
quote-style = "double"
|
| 22 |
+
indent-style = "space"
|
| 23 |
+
skip-magic-trailing-comma = false
|
| 24 |
+
line-ending = "lf"
|
backend/__init__.py
ADDED
|
File without changes
|
backend/app/__init__.py
ADDED
|
File without changes
|
backend/app/api/__init__.py
ADDED
|
File without changes
|
backend/app/core/__init__.py
ADDED
|
File without changes
|
backend/app/evaluation/__init__.py
ADDED
|
File without changes
|
backend/app/ingestion/__init__.py
ADDED
|
File without changes
|
backend/app/models/__init__.py
ADDED
|
File without changes
|
backend/app/retrieval/__init__.py
ADDED
|
File without changes
|
backend/app/utils/__init__.py
ADDED
|
File without changes
|
pyproject.toml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "atlasrag-backend"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
description = "Backend for AtlasRAG - multi-document research assistant."
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.10"
|
| 7 |
+
|
| 8 |
+
[tool.setuptools]
|
| 9 |
+
package-dir = {"" = "backend"}
|
| 10 |
+
|
| 11 |
+
[build-system]
|
| 12 |
+
requires = ["setuptools>=61.0"]
|
| 13 |
+
build-backend = "setuptools.build_meta"
|
requirements.txt
CHANGED
|
@@ -38,6 +38,9 @@ deepeval==1.4.8
|
|
| 38 |
python-multipart==0.0.9
|
| 39 |
|
| 40 |
# Development Tools
|
|
|
|
| 41 |
black==24.4.2
|
| 42 |
ruff==0.4.10
|
| 43 |
isort==5.13.2
|
|
|
|
|
|
|
|
|
| 38 |
python-multipart==0.0.9
|
| 39 |
|
| 40 |
# Development Tools
|
| 41 |
+
pre-commit==4.5.0
|
| 42 |
black==24.4.2
|
| 43 |
ruff==0.4.10
|
| 44 |
isort==5.13.2
|
| 45 |
+
|
| 46 |
+
-e .
|