Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ SIMKL_CLIENT_SECRET=your_simkl_client_secret
ANILIST_CLIENT_ID=your_anilist_client_id
ANILIST_CLIENT_SECRET=your_anilist_client_secret

# Worker modes (comma-separated subset of `outbox`, `metadata`, `metadata_backfill`, `metadata_cache`, `quick_import`, `import_all`, `watchlist`, `merge_history`, `merge_all_history`)
# Worker modes (comma-separated subset of `outbox`, `metadata`, `metadata_backfill`, `metadata_cache`, `quick_import`, `import_all`, `external_catalog_refresh`, `watchlist`, `merge_history`, `merge_all_history`)
LIBRARYSYNC_WORKER_MODES=all
LIBRARYSYNC_WORKER_OUTBOX_CONCURRENCY=1
LIBRARYSYNC_WORKER_METADATA_CONCURRENCY=1
LIBRARYSYNC_WORKER_QUICK_IMPORT_CONCURRENCY=1
LIBRARYSYNC_WORKER_IMPORT_ALL_CONCURRENCY=1
LIBRARYSYNC_WORKER_METADATA_CACHE_CONCURRENCY=1
LIBRARYSYNC_WORKER_EXTERNAL_CATALOG_REFRESH_CONCURRENCY=1
LIBRARYSYNC_EXTERNAL_CATALOG_REFRESH_HOURS=3
LIBRARYSYNC_EXTERNAL_CATALOG_MAX_ITEMS=500

# Rate limits (per user, per provider, per minute)
LIBRARYSYNC_TRAKT_RATE_LIMIT_PER_MINUTE=60
Expand Down
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ librarySync is a self-hosted, Docker-compose-deployable, multi-user hub for watc
- **Frontend**: Static HTML + vanilla JavaScript with Tailwind CSS
- **Architecture**: Async worker pattern with outbox-based delivery
- **Package Manager**: uv (preferred) with pyproject.toml
- **Linter**: Ruff with 100 character line length
- **Linter**: Ruff with 120 character line length

## Code Style & Conventions

### Python
- Line length: 100 characters (configured in pyproject.toml)
- Line length: 120 characters (configured in pyproject.toml)
- Use async/await patterns throughout the codebase
- Follow existing patterns for database models and SQLAlchemy queries
- Use type hints consistently
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"python.terminal.activateEnvironment": true,
"ruff.enable": true,
"ruff.lint.run": "onSave",
"editor.rulers": [100],
"editor.rulers": [120],
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ Primary audit sources: `watch_events`, `outbox`, `sync_attempts`, `watch_syncs`
- **HTTP Requests**: Always use `get_http_client()` from `core/http_client.py` to ensure consistent User-Agent headers (`librarySync Version/<version>`)

### Tooling
- **Linter**: Ruff with 100-character line length (see `pyproject.toml`)
- **Linter**: Ruff with 120-character line length (see `pyproject.toml`)
- **Styles**: Edit `frontend/input.css` (not `backend/src/librarysync/static/styles.css` directly)
- **Build**: Rebuild `backend/src/librarysync/static/styles.css` after Tailwind changes

Expand Down
Loading
Loading