Skip to content

Commit 296e474

Browse files
committed
feat: initialize v1 project layout
1 parent 2e1c5bf commit 296e474

File tree

111 files changed

+15192
-30785
lines changed

Some content is hidden

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

111 files changed

+15192
-30785
lines changed

.dockerignore

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
9+
strategy:
10+
matrix:
11+
python-version: ["3.14"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv & set Python
17+
uses: astral-sh/setup-uv@v7
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
enable-cache: true
21+
cache-python: true
22+
23+
- name: Ensure Python ${{ matrix.python-version }}
24+
run: uv python install ${{ matrix.python-version }}
25+
26+
- name: Sync dependencies
27+
run: |
28+
uv sync --frozen
29+
uv run pre-commit install
30+
31+
- name: Run style checks
32+
run: uv run make check
33+
34+
- name: Run tests
35+
run: uv run make test

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ jobs:
3636
with:
3737
password: ${{ secrets.PYPI_API_TOKEN }}
3838
skip-existing: true
39-
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
on:
2+
push:
3+
branches:
4+
- next
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
name: release-please
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
releases_created: ${{ steps.release.outputs.releases_created }}
18+
tag_name: ${{ steps.release.outputs.tag_name }}
19+
steps:
20+
- uses: googleapis/release-please-action@v4
21+
id: release
22+
with:
23+
release-type: python
24+
25+
build:
26+
name: upload wheel
27+
runs-on: ubuntu-latest
28+
needs: release-please
29+
if: ${{ needs.release-please.outputs.releases_created == 'true' && needs.release-please.outputs.tag_name != '' }}
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
python-version: ["3.14"]
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Install uv & set Python
38+
uses: astral-sh/setup-uv@v7
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
enable-cache: true
42+
cache-python: true
43+
44+
- name: Install Python ${{ matrix.python-version }}
45+
run: uv python install ${{ matrix.python-version }}
46+
47+
- name: Sync dependencies
48+
run: uv sync --frozen
49+
50+
- name: Build wheel
51+
run: uv build
52+
53+
- name: Upload binaries to release
54+
uses: svenstaro/upload-release-action@v2
55+
with:
56+
repo_token: ${{ secrets.GITHUB_TOKEN }}
57+
file: dist/memU-kaisen-test-*.whl
58+
tag: ${{ needs.release-please.outputs.tag_name }}
59+
file_glob: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,4 @@ models/
208208
.env.local
209209
.env.*.local
210210
secrets.txt
211-
api_keys.txt
211+
api_keys.txt

.pre-commit-config.yaml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,20 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: "v6.0.0"
44
hooks:
5-
- id: trailing-whitespace
6-
- id: end-of-file-fixer
7-
- id: check-yaml
8-
- id: check-added-large-files
5+
- id: check-case-conflict
96
- id: check-merge-conflict
10-
- id: debug-statements
11-
12-
- repo: https://github.com/psf/black
13-
rev: 23.3.0
14-
hooks:
15-
- id: black
16-
language_version: python3
17-
18-
- repo: https://github.com/pycqa/flake8
19-
rev: 6.0.0
20-
hooks:
21-
- id: flake8
22-
args: [--max-line-length=88, --extend-ignore=E203,W503]
23-
24-
- repo: https://github.com/pycqa/isort
25-
rev: 5.12.0
26-
hooks:
27-
- id: isort
28-
args: ["--profile", "black"]
7+
- id: check-toml
8+
- id: check-yaml
9+
- id: check-json
10+
- id: pretty-format-json
11+
args: [--autofix, --no-sort-keys]
12+
- id: end-of-file-fixer
13+
- id: trailing-whitespace
2914

30-
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.3.0
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: "v0.14.3"
3217
hooks:
33-
- id: mypy
34-
additional_dependencies: [types-all]
18+
- id: ruff
19+
args: [--exit-non-zero-on-fix]
20+
- id: ruff-format

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Thank you for your interest in contributing to MemU! This document provides guid
77
We welcome all types of contributions:
88

99
- 🐛 **Bug Reports** - Help us identify and fix issues
10-
- 💡 **Feature Requests** - Suggest new capabilities and improvements
10+
- 💡 **Feature Requests** - Suggest new capabilities and improvements
1111
- 📝 **Documentation** - Improve guides, examples, and API docs
1212
- 🔧 **Code Contributions** - Add features, fix bugs, optimize performance
1313
- 🧪 **Testing** - Write tests, improve coverage, test edge cases
@@ -145,7 +145,7 @@ type(scope): description
145145
146146
Examples:
147147
feat(memory): add semantic search functionality
148-
fix(llm): resolve OpenAI timeout issues
148+
fix(llm): resolve OpenAI timeout issues
149149
docs(readme): update installation instructions
150150
test(agent): add unit tests for memory retrieval
151151
refactor(core): restructure memory storage logic
@@ -241,4 +241,4 @@ Contributors are recognized in:
241241
- Release notes for significant contributions
242242
- Our [Contributors](https://github.com/NevaMind-AI/MemU/graphs/contributors) page
243243

244-
Thank you for helping make MemU better! 🚀
244+
Thank you for helping make MemU better! 🚀

0 commit comments

Comments
 (0)