Merge branch 'cpacker:main' into main

This commit is contained in:
Sarah Wooders
2023-10-26 16:40:06 -07:00
committed by GitHub
3 changed files with 32 additions and 0 deletions

14
.github/workflows/poetry-publish.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: Python package
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}

12
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,12 @@
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
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args: ['--line-length', '140']

View File

@@ -358,6 +358,12 @@ git clone git@github.com:cpacker/MemGPT.git
poetry shell
poetry install
```
We recommend installing pre-commit to ensure proper formatting during development:
```
pip install pre-commit
pre-commit install
pre-commit run --all-files
```
### Contributing
We welcome pull requests! Please run the formatter before submitting a pull request: