Skip to content

Commit 4dc5ceb

Browse files
authored
Merge pull request #419 from MODSetter/dev
Update README to remove future work and details
2 parents 45de58e + a725139 commit 4dc5ceb

File tree

2 files changed

+102
-9
lines changed

2 files changed

+102
-9
lines changed

.pre-commit-config.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Pre-commit configuration for SurfSense
2+
# See https://pre-commit.com for more information
3+
4+
repos:
5+
# General file quality hooks
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v5.0.0
8+
hooks:
9+
- id: check-yaml
10+
args: [--multi, --unsafe]
11+
- id: check-json
12+
exclude: '(tsconfig\.json|\.vscode/.*\.json)$'
13+
- id: check-toml
14+
- id: check-merge-conflict
15+
- id: check-added-large-files
16+
args: [--maxkb=10240] # 10MB limit
17+
- id: debug-statements
18+
- id: check-case-conflict
19+
20+
# Security - detect secrets across all file types
21+
- repo: https://github.com/Yelp/detect-secrets
22+
rev: v1.5.0
23+
hooks:
24+
- id: detect-secrets
25+
args: ['--baseline', '.secrets.baseline']
26+
exclude: |
27+
(?x)^(
28+
.*\.env\.example|
29+
.*\.env\.template|
30+
.*/tests/.*|
31+
.*test.*\.py|
32+
test_.*\.py|
33+
.github/workflows/.*\.yml|
34+
.github/workflows/.*\.yaml|
35+
.*pnpm-lock\.yaml|
36+
.*alembic\.ini|
37+
.*alembic/versions/.*\.py|
38+
.*\.mdx$
39+
)$
40+
41+
# Python Backend Hooks (surfsense_backend) - Using Ruff for linting and formatting
42+
- repo: https://github.com/astral-sh/ruff-pre-commit
43+
rev: v0.12.5
44+
hooks:
45+
- id: ruff
46+
name: ruff-check
47+
files: ^surfsense_backend/
48+
exclude: ^surfsense_backend/(test_.*\.py|.*test.*\.py)
49+
args: [--fix]
50+
- id: ruff-format
51+
name: ruff-format
52+
files: ^surfsense_backend/
53+
exclude: ^surfsense_backend/(test_.*\.py|.*test.*\.py)
54+
55+
- repo: https://github.com/PyCQA/bandit
56+
rev: 1.8.6
57+
hooks:
58+
- id: bandit
59+
files: ^surfsense_backend/
60+
args: ['-f', 'json', '--severity-level', 'high', '--confidence-level', 'high']
61+
exclude: ^surfsense_backend/(tests/|test_.*\.py|.*test.*\.py|alembic/)
62+
63+
# Biome hooks for TypeScript/JavaScript projects
64+
- repo: local
65+
hooks:
66+
# Biome check for surfsense_web
67+
- id: biome-check-web
68+
name: biome-check-web
69+
entry: bash -c 'cd surfsense_web && npx @biomejs/biome check --diagnostic-level=error .'
70+
language: system
71+
files: ^surfsense_web/
72+
pass_filenames: false
73+
always_run: true
74+
stages: [pre-commit]
75+
76+
# Biome check for surfsense_browser_extension
77+
# - id: biome-check-extension
78+
# name: biome-check-extension
79+
# entry: bash -c 'cd surfsense_browser_extension && npx @biomejs/biome check --diagnostic-level=error .'
80+
# language: system
81+
# files: ^surfsense_browser_extension/
82+
# pass_filenames: false
83+
# always_run: true
84+
# stages: [pre-commit]
85+
86+
# Commit message linting
87+
- repo: https://github.com/commitizen-tools/commitizen
88+
rev: v4.8.3
89+
hooks:
90+
- id: commitizen
91+
stages: [commit-msg]
92+
93+
# Global configuration
94+
default_stages: [pre-commit]
95+
fail_fast: false
96+

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ Open source and easy to deploy locally.
5858
- Supports all major Rerankers (Pinecode, Cohere, Flashrank etc)
5959
- Uses Hierarchical Indices (2 tiered RAG setup).
6060
- Utilizes Hybrid Search (Semantic + Full Text Search combined with Reciprocal Rank Fusion).
61-
- RAG as a Service API Backend.
6261

6362
### ℹ️ **External Sources**
6463
- Search Engines (Tavily, LinkUp)
@@ -148,8 +147,6 @@ SurfSense provides two installation methods:
148147
- Supports environment variable customization via `.env` file
149148
- Flexible deployment options (full stack or core services only)
150149
- No need to manually edit configuration files between environments
151-
- See [Docker Setup Guide](DOCKER_SETUP.md) for detailed instructions
152-
- For deployment scenarios and options, see [Deployment Guide](DEPLOYMENT_GUIDE.md)
153150

154151
2. **[Manual Installation (Recommended)](https://www.surfsense.net/docs/manual-installation)** - For users who prefer more control over their setup or need to customize their deployment.
155152

@@ -220,6 +217,12 @@ Before installation, make sure to complete the [prerequisite setup steps](https:
220217

221218
- **pgvector**: PostgreSQL extension for efficient vector similarity operations
222219

220+
- **Redis**: In-memory data structure store used as message broker and result backend for Celery
221+
222+
- **Celery**: Distributed task queue for handling asynchronous background jobs (document processing, podcast generation, etc.)
223+
224+
- **Flower**: Real-time monitoring and administration tool for Celery task queues
225+
223226
- **Chonkie**: Advanced document chunking and embedding library
224227
- Uses `AutoEmbeddings` for flexible embedding model selection
225228
- `LateChunker` for optimized document chunking based on embedding model's max sequence length
@@ -269,12 +272,6 @@ Before installation, make sure to complete the [prerequisite setup steps](https:
269272
### **Extension**
270273
Manifest v3 on Plasmo
271274

272-
## Future Work
273-
- Add More Connectors.
274-
- Patch minor bugs.
275-
- Document Podcasts
276-
277-
278275

279276
## Contribute
280277

0 commit comments

Comments
 (0)