Skip to content

Commit 6488160

Browse files
committed
fix pypi badge
1 parent 50b97f8 commit 6488160

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/peteretelej/diffchunk/actions/workflows/ci.yml/badge.svg)](https://github.com/peteretelej/diffchunk/actions/workflows/ci.yml)
44
[![codecov](https://codecov.io/gh/peteretelej/diffchunk/branch/main/graph/badge.svg)](https://codecov.io/gh/peteretelej/diffchunk)
5-
[![PyPI version](https://badge.fury.io/py/diffchunk.svg)](https://badge.fury.io/py/diffchunk)
5+
[![PyPI version](https://img.shields.io/pypi/v/diffchunk.svg)](https://pypi.org/project/diffchunk/)
66
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
88
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
@@ -155,7 +155,7 @@ get_chunk("/tmp/feature-ui.diff", 2)
155155
### Auto-Loading Defaults
156156

157157
When tools auto-load diffs (all tools except `load_diff`), they use:
158-
- `max_chunk_lines`: 4000 (LLM context optimized)
158+
- `max_chunk_lines`: 1000 (LLM context optimized)
159159
- `skip_trivial`: true (skip whitespace-only changes)
160160
- `skip_generated`: true (skip lock files, build artifacts)
161161
- `include_patterns`: none (include all files)
@@ -165,7 +165,7 @@ When tools auto-load diffs (all tools except `load_diff`), they use:
165165

166166
Use `load_diff` only when you need custom settings:
167167
- `absolute_file_path`: Absolute path to diff file
168-
- `max_chunk_lines`: Lines per chunk (default: 4000)
168+
- `max_chunk_lines`: Lines per chunk (default: 1000)
169169
- `skip_trivial`: Skip whitespace-only changes (default: true)
170170
- `skip_generated`: Skip build artifacts, lock files (default: true)
171171
- `include_patterns`: Comma-separated file patterns to include

docs/design.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ diffchunk/
5252
```python
5353
def load_diff(
5454
absolute_file_path: str,
55-
max_chunk_lines: int = 4000,
55+
max_chunk_lines: int = 1000,
5656
skip_trivial: bool = True,
5757
skip_generated: bool = True,
5858
include_patterns: str = None,
@@ -62,7 +62,7 @@ def load_diff(
6262

6363
**Parameters:**
6464
- `absolute_file_path`: Absolute path to diff file
65-
- `max_chunk_lines`: Maximum lines per chunk (default: 4000)
65+
- `max_chunk_lines`: Maximum lines per chunk (default: 1000)
6666
- `skip_trivial`: Skip whitespace-only changes (default: true)
6767
- `skip_generated`: Skip build artifacts, lock files (default: true)
6868
- `include_patterns`: Comma-separated file patterns to include
@@ -128,7 +128,7 @@ Diff File → Canonicalize Path → Hash Content → Cache Check → Parse → F
128128
### Chunking Strategy
129129
130130
- Prefer file boundaries to maintain context
131-
- Respect max_chunk_lines limit (default 4000)
131+
- Respect max_chunk_lines limit (default 1000)
132132
- Track file-to-chunk mapping for navigation
133133
- Preserve diff headers and context lines
134134
@@ -204,7 +204,7 @@ get_chunk("/tmp/feature-auth.diff", 1) # First chunk of auth changes
204204
### Auto-Loading Defaults
205205

206206
When tools auto-load diffs, they use these defaults:
207-
- `max_chunk_lines`: 4000 (LLM context optimized)
207+
- `max_chunk_lines`: 1000 (LLM context optimized)
208208
- `skip_trivial`: true (skip whitespace-only changes)
209209
- `skip_generated`: true (skip lock files, build artifacts)
210210
- `include_patterns`: none (include all files)

0 commit comments

Comments
 (0)