Merge branch 'cpacker:main' into main
This commit is contained in:
14
.github/workflows/poetry-publish.yml
vendored
Normal file
14
.github/workflows/poetry-publish.yml
vendored
Normal 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
12
.pre-commit-config.yaml
Normal 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']
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user