-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add initial version of anamnesis.ai with rago (#19)
- Loading branch information
Showing
294 changed files
with
56,418 additions
and
1,275 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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
environment-file: conda/release.yaml | ||
channels: conda-forge,nodefaults | ||
activate-environment: anamnesisai | ||
auto-update-conda: true | ||
conda-solver: libmamba | ||
python-version: "3.11" | ||
|
||
- name: Install deps | ||
run: | | ||
poetry config virtualenvs.create false | ||
poetry install | ||
- name: Run semantic release (for tests) | ||
if: ${{ github.event_name != 'workflow_dispatch' }} | ||
run: makim --verbose release.dry | ||
|
||
- name: Run semantic release | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
run: | | ||
poetry config pypi-token.pypi ${PYPI_TOKEN} | ||
makim --verbose release.ci | ||
- name: Generate documentation with changes from semantic-release | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
run: makim --verbose docs.build | ||
|
||
- name: GitHub Pages action | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/ | ||
|
||
- name: Setup tmate session | ||
if: "${{ failure() && (contains(github.event.pull_request.labels.*.name, 'ci:enable-debugging')) }}" | ||
uses: mxschmitt/action-tmate@v3 |
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
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ dependencies: | |
- pip: | ||
# distlib issue | ||
- paginate | ||
# pip wheel --no-cache-dir --use-pep517 "srsly (==2.4.8)" |
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,14 @@ | ||
name: anamnesisai | ||
channels: | ||
- nodefaults | ||
- conda-forge | ||
dependencies: | ||
- python | ||
- pip | ||
- poetry | ||
- nodejs >=18.17 # used by semantic-release | ||
- shellcheck | ||
- pip: | ||
# distlib issue | ||
- paginate | ||
# pip wheel --no-cache-dir --use-pep517 "srsly (==2.4.8)" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,39 +61,50 @@ If you are proposing a feature: | |
|
||
## Get Started! | ||
|
||
Ready to contribute? Here’s how to set up `anamnesisai` for local development. | ||
Ready to contribute? Here’s how to set up `anamnesis.ai` for local development. | ||
|
||
1. Fork the `anamnesisai` repo on GitHub. | ||
1. Fork the `anamnesis.ai` repo on GitHub. | ||
|
||
2. Clone your fork locally:: | ||
|
||
$ git clone [email protected]:your_name_here/anamnesisai.git | ||
|
||
3. Install your local copy into a virtualenv. Assuming you have | ||
virtualenvwrapper installed, this is how you set up your fork for local | ||
development:: | ||
|
||
$ mkvirtualenv anamnesisai $ cd anamnesisai/ $ python setup.py develop | ||
|
||
4. Create a branch for local development:: | ||
|
||
$ git clone [email protected]:your_name_here/anamnesis.ai.git | ||
|
||
3. Install your local copy into a conda environment. Assuming you have conda or | ||
mamba installed, this is how you set up your fork for local development | ||
(ensure you are already in the anamnesis.ai folder): | ||
```bash | ||
$ mamba env create --file conda/dev.yaml | ||
$ conda activate anamnesisai | ||
``` | ||
4. Install the dependencies in the new environment anamnesisai: | ||
```bash | ||
$ poetry install | ||
``` | ||
5. Create a branch for local development:: | ||
|
||
```bash | ||
$ git checkout -b name-of-your-bugfix-or-feature | ||
``` | ||
|
||
Now you can make your changes locally. | ||
|
||
5. When you’re done making changes, check that your changes pass flake8 and the | ||
6. When you’re done making changes, check that your changes pass flake8 and the | ||
tests, including testing other Python versions with tox:: | ||
|
||
$ make lint $ make test | ||
|
||
To get flake8 and tox, just pip install them into your virtualenv. | ||
```bash | ||
$ makim tests.linter | ||
$ makim tests.unit | ||
``` | ||
|
||
6. Commit your changes and push your branch to GitHub:: | ||
7. Commit your changes and push your branch to GitHub:: | ||
|
||
$ git add . $ git commit -m “Your detailed description of your changes.” $ | ||
git push origin name-of-your-bugfix-or-feature | ||
```bash | ||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
$ git push origin name-of-your-bugfix-or-feature | ||
``` | ||
|
||
7. Submit a pull request through the GitHub website. | ||
8. Submit a pull request through the GitHub website. | ||
|
||
## Pull Request Guidelines | ||
|
||
|
@@ -103,13 +114,13 @@ Before you submit a pull request, check that it meets these guidelines: | |
2. If the pull request adds functionality, the docs should be updated. Put your | ||
new functionality into a function with a docstring, and add the feature to | ||
the list in README.rst. | ||
3. The pull request should work for Python >= 3.8. | ||
3. The pull request should work for Python >= `3.9`. | ||
|
||
## Tips | ||
|
||
To run a subset of tests:: | ||
|
||
``` | ||
```bash | ||
$ pytest tests.test_anamnesisai | ||
``` | ||
|
||
|
@@ -147,7 +158,7 @@ The table below shows which commit message gets you which release type when | |
| `fix(pencil): stop graphite breaking when pressure is applied` | Fix Release | | ||
| `feat(pencil): add 'graphiteWidth' option` | Feature Release | | ||
| `perf(pencil): remove graphiteWidth option` | Chore | | ||
| `BREAKING CHANGE: The graphiteWidth option has been removed` | Breaking Release | | ||
| `feat(pencil)!: The graphiteWidth option has been removed` | Breaking Release | | ||
|
||
source: | ||
<https://github.com/semantic-release/semantic-release/blob/master/README.md#commit-message-format> | ||
|
Oops, something went wrong.