Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2e87234
ci: Change main proj name (#22)
asafgardin Dec 19, 2023
ef30164
fix: readme
asafgardin Dec 19, 2023
2f53ec9
chore(release): v2.0.0-rc.4 [skip ci]
actions-user Dec 19, 2023
bbb87d3
docs: README.md (#23)
asafgardin Dec 20, 2023
53c53cb
docs: Readme migration (#24)
asafgardin Dec 20, 2023
d166253
ci: Remove python 3_7 support (#25)
asafgardin Dec 20, 2023
e4bb903
docs: Readme additions (#27)
asafgardin Dec 20, 2023
c455b77
test: Unittests for 2.0.0 (#28)
asafgardin Dec 25, 2023
d6f73b5
fix: Feedback fixes (#29)
asafgardin Dec 27, 2023
916c7b4
chore(release): v2.0.0-rc.5 [skip ci]
actions-user Dec 27, 2023
f84f86a
refactor: Add enums (#30)
asafgardin Dec 31, 2023
92c3f5d
fix: bump version
etang-ai21 Jan 2, 2024
1ed334b
chore(release): v2.0.0-rc.6 [skip ci]
actions-user Jan 2, 2024
9e8a1f0
fix: Restructure packages (#31)
asafgardin Jan 2, 2024
49a6ee1
chore(release): v2.0.0-rc.7 [skip ci]
actions-user Jan 2, 2024
fa199c4
fix: Added env config class to init (#32)
asafgardin Jan 2, 2024
6c9c0d0
fix: Added py.typed (#33)
asafgardin Jan 2, 2024
4d4ef71
fix: Pass env config to client ctor (#34)
asafgardin Jan 3, 2024
4336c46
fix: env vars to http client in sagemaker (#35)
asafgardin Jan 3, 2024
b766c77
chore(release): v2.0.0-rc.8 [skip ci]
actions-user Jan 3, 2024
2d0fe72
fix: Removed name parameter from chat message (#36)
asafgardin Jan 7, 2024
c36a0e4
chore(release): v2.0.0-rc.9 [skip ci]
actions-user Jan 7, 2024
bac77e9
fix: chat parameters (#39)
asafgardin Jan 18, 2024
11dd4da
chore(release): v2.0.0-rc.10 [skip ci]
actions-user Jan 18, 2024
fe3765c
fix: top_k_returns to top_k_return (#40)
asafgardin Jan 22, 2024
ec1f977
chore(release): v2.0.0-rc.11 [skip ci]
actions-user Jan 22, 2024
d7208ab
fix: added user agent with more details (#42)
asafgardin Jan 29, 2024
0eacdbb
ci: Add rc branch prefix trigger for integration tests (#43)
asafgardin Jan 29, 2024
127cef4
fix: aws tests (#44)
asafgardin Jan 30, 2024
78709a7
fix: Integration tests (#41)
asafgardin Jan 30, 2024
347e7f9
chore(deps-dev): bump jinja2 from 3.1.2 to 3.1.3 (#38)
dependabot[bot] Jan 30, 2024
bf3e740
chore(deps-dev): bump gitpython from 3.1.40 to 3.1.41 (#37)
dependabot[bot] Jan 30, 2024
ee75fb5
chore(deps): bump actions/upload-artifact from 3 to 4 (#21)
dependabot[bot] Jan 30, 2024
665c953
chore(deps): bump pypa/gh-action-pypi-publish from 1.4.2 to 1.8.11 (#20)
dependabot[bot] Jan 30, 2024
40d6df8
chore(deps): bump actions/setup-python from 4 to 5 (#19)
dependabot[bot] Jan 30, 2024
03a36a9
chore(deps): bump amannn/action-semantic-pull-request (#2)
dependabot[bot] Jan 30, 2024
e7fff80
test: Added tests for library (#45)
asafgardin Jan 30, 2024
98c14c9
chore(release): v2.0.0-rc.12 [skip ci]
actions-user Jan 30, 2024
ebffd95
fix: Removed unnecessary pre commit hook
asafgardin Jan 31, 2024
db17a96
fix: Removed autouse
asafgardin Jan 31, 2024
d42127b
fix: CR
asafgardin Jan 31, 2024
934e0e7
docs: CONTRIBUTING.md
asafgardin Jan 31, 2024
ca0703d
docs: LICENSE
asafgardin Jan 31, 2024
7cca719
fix: removed license
asafgardin Jan 31, 2024
1782de8
test: Added some more unittests
asafgardin Jan 31, 2024
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
9 changes: 5 additions & 4 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- "rc_*"

env:
POETRY_VERSION: "1.7.1"
Expand All @@ -23,7 +24,7 @@ jobs:
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -33,7 +34,7 @@ jobs:
poetry env use ${{ matrix.python-version }}
- name: Install dependencies
run: |
poetry install --no-root --only dev --all-extras
poetry install --only dev --all-extras
- name: Lint Python (Black)
run: |
poetry run inv formatter
Expand All @@ -55,7 +56,7 @@ jobs:
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -74,7 +75,7 @@ jobs:
run: |
poetry run pytest tests/integration_tests/
- name: Upload pytest integration tests results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -34,8 +34,7 @@ jobs:
- name: Build package
run: poetry build
- name: Publish package to PYPI
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/quality-checks.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 1
steps:
- name: Semantic pull-request
uses: amannn/action-semantic-pull-request@v5.0.2
uses: amannn/action-semantic-pull-request@v5.4.0
with:
requireScope: false
wip: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -44,15 +44,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
Expand All @@ -69,9 +69,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
poetry run pytest
poetry run pytest tests/unittests/
- name: Upload pytest test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
Expand Down
158 changes: 47 additions & 111 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,93 +1,45 @@
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config.json

minimum_pre_commit_version: 2.20.0
fail_fast: false
default_stages:
- commit
exclude: (.idea|vscode)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.4.0
hooks:
- id: check-added-large-files
exclude: (ai21_tokenizer/resources|tests/resources)
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
exclude: .gitleaks.toml
- id: no-commit-to-branch
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
exclude: (CHANGELOG.md)
- id: check-json
- id: check-toml
- id: check-xml
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
rev: 3.0.0
hooks:
- id: forbid-binary
exclude: (ai21_tokenizer/resources|tests/resources)
- id: git-check
files: "CHANGELOG.md"
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.3
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.5.3
hooks:
- id: yamllint
name: Lint YAML files
args:
- --strict
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.4.1
- id: commitizen
name: Lint commit message
stages:
- commit-msg
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.3
hooks:
- id: check-jsonschema
name: Validate GitHub Workflows
files: ^\.github/workflows/.*\.yml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/github-workflow.json
- id: check-jsonschema
name: Validate GitHub Actions
files: >
(?x)^(
.*/action\.(yml|yaml)|
\.github/actions/.*
)$
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/github-action
- id: check-jsonschema
name: Validate DependaBot
files: ^\.github/dependabot\.yml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/dependabot-2.0.json
- id: check-jsonschema
name: Validate MarkdownLint
files: .*\.markdownlint\.yaml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/markdownlint.json
- id: check-jsonschema
name: Validate YamlLint
files: .*\.yamllint\.yaml
types:
- yaml
args:
- --schemafile
- https://json.schemastore.org/yamllint.json
- id: check-jsonschema
name: Validate Pre-commit
files: .*\.pre-commit-config\.yaml
Expand All @@ -97,30 +49,36 @@ repos:
- --schemafile
- https://json.schemastore.org/pre-commit-config.json
- id: check-jsonschema
name: Validate Docker-Compose
files: .*docker-compose\.yml
name: Validate YamlLint configuration
files: .*\.yamllint\.yaml
types:
- yaml
args:
- --schemafile
- https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
- https://json.schemastore.org/yamllint.json
- id: check-jsonschema
name: Validate Renovate
files: ^\.github/renovate\.json
name: Validate Prettier configuration
files: .*\.prettierrc\.yaml
types:
- json
- yaml
args:
- --schemafile
- https://docs.renovatebot.com/renovate-schema.json
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.18.0
- http://json.schemastore.org/prettierrc
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: commitizen
name: Lint commit message
stages:
- commit-msg
- id: poetry-check
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
hooks:
- id: yamllint
name: Lint YAML files
args:
- --format
- parsable
- --strict
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.7.2.1
rev: v0.9.0.5
hooks:
- id: shellcheck
name: Check sh files (and patch)
Expand All @@ -140,45 +98,23 @@ repos:
- yaml
- markdown
- shell
- repo: local
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: list-files
name: List files
language: system
entry: bash -c 'echo $@'
stages:
- manual
- id: shfmt
name: Format sh files
language: docker_image
entry: mvdan/shfmt:v3.4.0
args:
- -w
- -s
- -i
- "2"
- id: black
types:
- shell
- id: markdownlint
name: Lint Markdown files
language: docker_image
entry: 06kellyjac/markdownlint-cli:0.28.1
- python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.280
hooks:
- id: ruff
args:
- --fix
types:
- markdown
- repo: local
hooks:
- id: hadolint
name: Lint Dockerfiles
language: docker_image
entry: hadolint/hadolint:v2.8.0 hadolint
entry: hadolint/hadolint:v2.10.0 hadolint
types:
- dockerfile
- id: gitleaks
name: Detect hardcoded secrets
language: docker_image
entry: zricethezav/gitleaks:v7.6.1
args:
- --append-repo-config
- --config-path
- .gitleaks.toml
- --verbose
Loading