Skip to content

Commit f71463d

Browse files
committed
Merge branch 'develop'
2 parents 52ea9ce + 3161f58 commit f71463d

13 files changed

+197
-136
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ htmlcov/
4848
# Logs
4949
*.log
5050
prompt.md
51+
52+
.serena/

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: make-check-test
5+
name: Run make check and test
6+
entry: make check test
7+
language: system
8+
pass_filenames: false
9+
stages: [pre-commit]
10+
- id: commit-msg-ascii
11+
name: Commit message must be ASCII
12+
entry: python3 scripts/validate_commit_message_ascii.py
13+
language: system
14+
stages: [commit-msg]

.serena/memories/code_style_conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
- Custom error types with meaningful messages
2727
- Hash-based conflict detection
2828
- Comprehensive input validation
29-
- No sensitive information in error messages
29+
- No sensitive information in error messages

.serena/memories/project_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ MCP Text Editor Server provides line-oriented text file editing capabilities thr
2323
- `TextEditorService`: Service layer
2424
- Handler classes: Individual tool implementations (create, get, patch, delete, insert, append)
2525
- Models: Data structures for requests/responses
26-
- Server: MCP server implementation
26+
- Server: MCP server implementation

.serena/memories/suggested_commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ make format
2121

2222
# Lint code
2323
uv run black --check src tests
24-
uv run isort --check src tests
24+
uv run isort --check src tests
2525
uv run ruff check src tests
2626
make lint
2727

@@ -54,4 +54,4 @@ uv run pytest --lf
5454
## System Commands (Linux)
5555
- Standard Linux utilities: ls, cd, grep, find
5656
- Git version control
57-
- uv for Python package management
57+
- uv for Python package management

.serena/memories/task_completion_checklist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ When completing any development task:
44

55
## Code Quality
66
1. **Format code**: `make format`
7-
2. **Lint check**: `make lint`
7+
2. **Lint check**: `make lint`
88
3. **Type check**: `make typecheck`
99
4. **All quality checks**: `make check`
1010

@@ -27,4 +27,4 @@ When completing any development task:
2727

2828
## Pre-commit
2929
- Format, lint, type check, and test before any commits
30-
- Use `make all` for comprehensive validation
30+
- Use `make all` for comprehensive validation

.serena/project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ read_only: false
2222

2323
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
2424
# Below is the complete list of tools for convenience.
25-
# To make sure you have the latest list of tools, and to view their descriptions,
25+
# To make sure you have the latest list of tools, and to view their descriptions,
2626
# execute `uv run scripts/print_tool_overview.py`.
2727
#
2828
# * `activate_project`: Activates a project by name.

.wkm/bin/install

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#! /bin/bash
2+
make install
3+
make pre-commit-install

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2525
FROM python:3.13-slim-bookworm
2626

2727
WORKDIR /app
28-
28+
2929
# COPY --from=uv /root/.local /root/.local
3030
COPY --from=uv --chown=app:app /app/.venv /app/.venv
3131

@@ -36,4 +36,4 @@ COPY --from=uv --chown=app:app /app/src /app/src
3636
ENV PATH="/app/.venv/bin:$PATH"
3737

3838
# Run mcp server
39-
ENTRYPOINT ["python", "src/mcp_text_editor/server.py"]
39+
ENTRYPOINT ["python", "src/mcp_text_editor/server.py"]

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test:
55
uv run pytest
66

77
install:
8-
uv sync --all-extras
8+
uv sync --all-extras
99

1010
coverage:
1111
uv run pytest --cov=mcp_text_editor --cov-report=term-missing
@@ -28,3 +28,9 @@ typecheck:
2828
check: lint typecheck
2929
fix: format
3030
all: format typecheck coverage
31+
32+
pre-commit-install:
33+
uv run pre-commit install --install-hooks --hook-type pre-commit --hook-type commit-msg
34+
35+
pre-commit-run:
36+
uv run pre-commit run --all-files

0 commit comments

Comments
 (0)