Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on:
push:
branches: [ main, fix-storage-health-coroutine-error ]
pull_request:
branches: [ main ]

jobs:
checks:
uses: ./.github/workflows/shared.yml
76 changes: 76 additions & 0 deletions .github/workflows/shared.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Shared Checks

on:
workflow_call:

permissions:
contents: read

env:
COLUMNS: 150

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: 0.8.19

- name: Install dependencies
run: uv sync --frozen --group dev --python 3.10

- name: Run ruff check
run: uv run ruff check .

- name: Run ruff format check
run: uv run ruff format --check .

test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
continue-on-error: false
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: 0.8.19

- name: Install the project
run: uv sync --frozen --group dev --python ${{ matrix.python-version }}

- name: Run pytest
run: uv run pytest tests/ --tb=short

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: 0.8.19

- name: Install dependencies
run: uv sync --frozen --group dev --python 3.12

- name: Run tests with coverage
run: uv run pytest tests/ --cov=src/memcord --cov-report=xml --cov-report=term

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
123 changes: 123 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Claude Code internal files (not for repository)
CLAUDE.md
CLAUDE-RECOVERY-PROMPT.md
SESSION-RECOVERY.md
TASK-MATRIX.md
DRY_MAINTAINABILITY_ANALYSIS.md
TESTING_METHODOLOGY_VALIDATION.md
PR-DESCRIPTION*.md
PR-READINESS*.md
.claude/

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
*.spec

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Virtual environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# IDEs and editors
.vscode/
.idea/
*.swp
*.swo
*~

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Project specific
memory_slots/
shared_memories/
archives/
cache/
logs/
*.log

# Temporary files
*.tmp
*.temp
.tmp/
.temp/

# Development
.env.local
.env.development
.env.test
.env.production

# Database
*.db
*.sqlite
*.sqlite3

# Jupyter Notebooks
.ipynb_checkpoints

# pyenv
.python-version

# UV
.uv/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# PyCharm
.idea/

# Ruff
.ruff_cache/
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ include = [
]

[tool.black]
line-length = 88
target-version = ['py38']
line-length = 120
target-version = ['py310']

[tool.ruff]
line-length = 88
target-version = "py38"
line-length = 120
target-version = "py310"

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
Expand Down Expand Up @@ -116,5 +118,6 @@ dev = [
"pytest-benchmark>=5.1.0",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
"ruff>=0.12.0",
"selenium>=4.34.0",
]
2 changes: 1 addition & 1 deletion src/memcord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
and file sharing capabilities.
"""

__version__ = "0.1.0"
__version__ = "0.1.0"
Loading