* chore: Add CLI command to create API key for default superuser with AUTO_LOGIN enabled * chore: Add pyperclip dependency for cross-platform clipboard functionality * chore: Update API key banner to copy the key to clipboard * chore: Update langchainhub package version to 0.1.16 and openai package version to 1.30.3 * chore: Update pre-commit hooks to fix mixed line endings and trailing whitespace in Python, JavaScript, and TypeScript files * style(__main__.py): add type ignore comment for import of pyperclip to suppress type checking error
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: "v9.1.1"
|
|
hooks:
|
|
- id: eslint
|
|
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
|
|
types: [file]
|
|
args: ["--fix", "--no-warn-ignored"]
|
|
additional_dependencies:
|
|
- eslint@9.1.1
|
|
- eslint-plugin-prettier
|
|
- eslint-config-prettier
|
|
- prettier
|
|
- eslint-plugin-react@latest
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.1.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: end-of-file-fixer
|
|
# python, js and ts only
|
|
files: \.(py|js|ts)$
|
|
- id: mixed-line-ending
|
|
files: \.(py|js|ts)$
|
|
args:
|
|
- --fix=lf
|
|
- id: trailing-whitespace
|
|
- id: pretty-format-json
|
|
exclude: ^tsconfig.*.json
|
|
args:
|
|
- --autofix
|
|
- --indent=4
|
|
- --no-sort-keys
|
|
- id: check-merge-conflict
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.4.2
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
# Python
|
|
files: \.py$
|
|
types: [file]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
files: \.py$
|
|
types: [file]
|