-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First pass at refactor * Removed outdated unit tests * Adjusted build pipeline * Bumped version * Added notes on the caching * Working through unit tests 1 * Fixed mypy errors * More progress on unit tests * Linted * Fixed remaining unit tests * More typing stuff * Added caching info to README * Changed doc.name to doc.docname * Updated testing environment to 3.11 * Partially completed conversion to new prompt system * Fixed more tests * Fixed last tests * Fixed missing import * Completed custom prompts * Added the fileio reader * Added url support * Simplifed some tests * Fixed conditions on test * Fixed README * Updated TOC * Reduced section heading level on TOC * Revised README more
- Loading branch information
Showing
21 changed files
with
1,126 additions
and
1,148 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
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 |
---|---|---|
|
@@ -132,4 +132,4 @@ dmypy.json | |
*.txt.json | ||
|
||
*.ipynb | ||
env | ||
env |
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,16 +1,32 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- repo: https://github.com/psf/black | ||
rev: "22.3.0" | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/isort/isort | ||
rev: "5.11.2" | ||
hooks: | ||
- id: isort | ||
default_language_version: | ||
python: python3 | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: check-added-large-files | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.0.270" | ||
hooks: | ||
- id: ruff | ||
args: [ --fix, --exit-non-zero-on-fix ] | ||
- repo: https://github.com/psf/black | ||
rev: "23.3.0" | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v1.3.0" | ||
hooks: | ||
- id: mypy | ||
args: [--pretty, --ignore-missing-imports] | ||
additional_dependencies: [types-requests] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: "5.12.0" | ||
hooks: | ||
- id: isort | ||
args: [--profile=black, "--skip=__init__.py", "--filter-files"] |
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,2 @@ | ||
# Allow lines to be as long as 120 characters. | ||
line-length = 120 |
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,7 +1,8 @@ | ||
pytest | ||
pre-commit | ||
requests | ||
paper-scraper@git+https://github.com/blackadad/paper-scraper.git | ||
pyzotero | ||
python-dotenv | ||
pymupdf | ||
pymupdf | ||
build | ||
types-requests |
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,3 +1,4 @@ | ||
from .agent import run_agent | ||
from .docs import Answer, Docs, maybe_is_text | ||
from .docs import Answer, Docs, PromptCollection | ||
from .version import __version__ | ||
|
||
__all__ = ["Docs", "Answer", "PromptCollection", "__version__"] |
Oops, something went wrong.