-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start of chat screen * updated deps * added precommit config * major formatting / linting rework * fix locating ollama executable in certain environments * fix tab focus issue * remember last tab used and start on that tab next launch * changed custom ollama url env var to not conflict with existing ollama var initial rollout of chat tab
- Loading branch information
1 parent
0502e0b
commit efaa531
Showing
60 changed files
with
3,032 additions
and
2,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
default_stages: [pre-commit, pre-push] | ||
fail_fast: false | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-toml | ||
- id: detect-private-key | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: [--autofix, --no-sort-keys] | ||
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ | ||
|
||
#- repo: https://github.com/asottile/pyupgrade | ||
# rev: v3.16.0 | ||
# hooks: | ||
# - id: pyupgrade | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ | ||
|
||
- repo: https://github.com/asottile/reorder-python-imports | ||
rev: v3.13.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
args: [--py39-plus, --add-import, 'from __future__ import annotations'] | ||
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ | ||
|
||
#- repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v1.10.1 | ||
# hooks: | ||
# - id: mypy | ||
# additional_dependencies: [textual, rich, pydantic, ollama, docker, types-beautifulsoup4, types-requests, types-pytz, types-simplejson, typing-extensions, asyncio, humanize, argparse, python-dotenv] | ||
# exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: make | ||
language: system | ||
pass_filenames: false | ||
args: | ||
[typecheck] | ||
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/ | ||
|
||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: make | ||
language: system | ||
pass_filenames: false | ||
args: | ||
[lint] | ||
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""The main entry point for the application.""" | ||
|
||
from __future__ import annotations | ||
|
||
import os | ||
|
Oops, something went wrong.