Skip to content

Commit 369973f

Browse files
authored
v0.10.0 (run-llama#10537)
1 parent 4187950 commit 369973f

File tree

8,424 files changed

+2275227
-257881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,424 files changed

+2275227
-257881
lines changed

.github/workflows/unit_test.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ env:
1111

1212
jobs:
1313
test:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-latest-unit-tester
1515
strategy:
1616
# You can use PyPy versions in python-version.
1717
# For example, pypy-2.7 and pypy-3.8
1818
matrix:
19-
python-version: ["3.10", "3.9", "3.8"]
19+
python-version: ["3.8", "3.9", "3.10"]
2020
steps:
21+
- name: clear space
22+
env:
23+
CI: true
24+
shell: bash
25+
run: rm -rf /opt/hostedtoolcache/*
2126
- uses: actions/checkout@v3
2227
- name: Set up python ${{ matrix.python-version }}
2328
uses: actions/setup-python@v4
@@ -27,11 +32,19 @@ jobs:
2732
uses: snok/install-poetry@v1
2833
with:
2934
version: ${{ env.POETRY_VERSION }}
30-
- name: Install deps
31-
shell: bash
32-
run: poetry install --with dev
35+
- uses: pantsbuild/actions/init-pants@v5-scie-pants
36+
with:
37+
# v0 makes it easy to bust the cache if needed
38+
# just increase the integer to start with a fresh cache
39+
gha-cache-key: v0-py${{ matrix.python_version }}
40+
named-caches-hash: ${{ hashFiles('**/pyproject.toml') }}
41+
pants-python-version: ${{ matrix.python-version }}
42+
pants-ci-config: pants.toml
43+
- name: Check BUILD files
44+
run: |
45+
pants tailor --check :: -docs/::
3346
- name: Run testing
3447
env:
3548
CI: true
3649
shell: bash
37-
run: poetry run make test
50+
run: poetry run make -s test

.gitignore

+6-154
Original file line numberDiff line numberDiff line change
@@ -1,156 +1,8 @@
1-
llama_index/_static
2-
.DS_Store
3-
# Byte-compiled / optimized / DLL files
4-
__pycache__/
5-
*.py[cod]
6-
*$py.class
7-
8-
# C extensions
9-
*.so
10-
11-
# Distribution / packaging
12-
.Python
13-
bin/
14-
build/
15-
develop-eggs/
1+
.pants.d/
162
dist/
17-
downloads/
18-
eggs/
19-
.eggs/
20-
etc/
21-
include/
22-
lib/
23-
lib64/
24-
parts/
25-
sdist/
26-
share/
27-
var/
28-
wheels/
29-
pip-wheel-metadata/
30-
share/python-wheels/
31-
*.egg-info/
32-
.installed.cfg
33-
*.egg
34-
MANIFEST
35-
36-
# PyInstaller
37-
# Usually these files are written by a python script from a template
38-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
39-
*.manifest
40-
*.spec
41-
42-
# Installer logs
43-
pip-log.txt
44-
pip-delete-this-directory.txt
45-
46-
# Unit test / coverage reports
47-
htmlcov/
48-
.tox/
49-
.nox/
50-
.coverage
51-
.coverage.*
52-
.cache
53-
nosetests.xml
54-
coverage.xml
55-
*.cover
56-
*.py,cover
57-
.hypothesis/
58-
.pytest_cache/
59-
.ruff_cache
60-
61-
# Translations
62-
*.mo
63-
*.pot
64-
65-
# Django stuff:
66-
*.log
67-
local_settings.py
68-
db.sqlite3
69-
db.sqlite3-journal
70-
71-
# Flask stuff:
72-
instance/
73-
.webassets-cache
74-
75-
# Scrapy stuff:
76-
.scrapy
77-
78-
# Sphinx documentation
79-
docs/_build/
80-
81-
# PyBuilder
82-
target/
83-
84-
# Jupyter Notebook
85-
.ipynb_checkpoints
86-
notebooks/
87-
88-
# IPython
89-
profile_default/
90-
ipython_config.py
91-
92-
# pyenv
93-
.python-version
94-
95-
# pipenv
96-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
98-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
99-
# install all needed dependencies.
100-
#Pipfile.lock
101-
102-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
103-
__pypackages__/
104-
105-
# Celery stuff
106-
celerybeat-schedule
107-
celerybeat.pid
108-
109-
# SageMath parsed files
110-
*.sage.py
111-
112-
# Environments
113-
.env
114-
.venv
115-
env/
3+
migration_scripts/
1164
venv/
117-
ENV/
118-
env.bak/
119-
venv.bak/
120-
pyvenv.cfg
121-
122-
# Spyder project settings
123-
.spyderproject
124-
.spyproject
125-
126-
# Rope project settings
127-
.ropeproject
128-
129-
# mkdocs documentation
130-
/site
131-
132-
# mypy
133-
.mypy_cache/
134-
.dmypy.json
135-
dmypy.json
136-
137-
# Pyre type checker
138-
.pyre/
139-
140-
# Jetbrains
141-
.idea
142-
modules/
143-
*.swp
144-
145-
# VsCode
146-
.vscode
147-
148-
# pipenv
149-
Pipfile
150-
Pipfile.lock
151-
152-
# pyright
153-
pyrightconfig.json
154-
155-
# persist dir for chromadb test
156-
/data/
5+
.ipynb_checkpoints
6+
.__pycache__
7+
dev_notebooks/
8+
llamaindex_registry.txt

.pre-commit-config.yaml

+26-13
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ repos:
1010
- id: check-merge-conflict
1111
- id: check-symlinks
1212
- id: check-toml
13-
exclude: llama_index/_static
13+
exclude: llama-index-core/llama_index/core/_static
1414
- id: check-yaml
15-
exclude: llama_index/_static
15+
exclude: llama-index-core/llama_index/core/_static
1616
- id: detect-private-key
1717
- id: end-of-file-fixer
18-
exclude: llama_index/_static
18+
exclude: llama-index-core/llama_index/core/_static
1919
- id: mixed-line-ending
20-
exclude: llama_index/_static
20+
exclude: llama-index-core/llama_index/core/_static
2121
- id: trailing-whitespace
22-
exclude: llama_index/_static
22+
exclude: llama-index-core/llama_index/core/_static
2323
- repo: https://github.com/charliermarsh/ruff-pre-commit
2424
rev: v0.1.5
2525

2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]
29-
exclude: llama_index/_static
29+
exclude: ".*poetry.lock|.*_static"
3030
- repo: https://github.com/psf/black-pre-commit-mirror
3131
rev: 23.10.1
3232
hooks:
3333
- id: black-jupyter
3434
name: black-src
3535
alias: black
36-
exclude: ^(docs/|llama_index/_static)
36+
exclude: "^docs|.*poetry.lock|.*_static"
3737
- repo: https://github.com/pre-commit/mirrors-mypy
3838
rev: v1.0.1
3939
hooks:
@@ -47,14 +47,17 @@ repos:
4747
"types-PyYAML",
4848
"types-protobuf==4.24.0.4",
4949
]
50-
exclude: ^(docs/|llama_index/_static)
50+
exclude: ^(docs/|llama-index-core/llama_index/core/_static)
51+
args:
52+
[MYPYPATH=llama_index, --namespace-packages, --explicit-package-bases]
53+
entry: bash -c 'cd $GIT_PREFIX'
5154
- repo: https://github.com/psf/black-pre-commit-mirror
5255
rev: 23.10.1
5356
hooks:
5457
- id: black-jupyter
5558
name: black-docs-py
5659
alias: black
57-
files: docs/
60+
files: ^(docs/|examples/)
5861
# Using PEP 8's line length in docs prevents excess left/right scrolling
5962
args: [--line-length=79]
6063
- repo: https://github.com/adamchainz/blacken-docs
@@ -71,14 +74,24 @@ repos:
7174
rev: v3.0.3
7275
hooks:
7376
- id: prettier
74-
exclude: llama_index/_static
77+
exclude: llama-index-core/llama_index/core/_static
7578
- repo: https://github.com/codespell-project/codespell
7679
rev: v2.2.6
7780
hooks:
7881
- id: codespell
7982
additional_dependencies: [tomli]
80-
exclude: llama_index/_static
81-
args: ["--ignore-words-list", "nin"]
83+
exclude: |
84+
(?x)^(
85+
poetry.lock|
86+
(\/.*?\.[\w:]+)/pyproject.toml|
87+
llama-index-core/llama_index/core/_static
88+
)$
89+
args:
90+
[
91+
"--ignore-words-list",
92+
"astroid,gallary,momento,narl,ot,rouge,nin,gere",
93+
]
94+
entry: bash -c 'cd $GIT_PREFIX'
8295
- repo: https://github.com/srstevenson/nb-clean
8396
rev: 3.1.0
8497
hooks:
@@ -88,4 +101,4 @@ repos:
88101
rev: v0.23.1
89102
hooks:
90103
- id: toml-sort-fix
91-
exclude: ^(poetry.lock|llama_index/_static)
104+
exclude: ".*poetry.lock|.*_static"

BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
poetry_requirements(
2+
name="root",
3+
)

0 commit comments

Comments
 (0)