Commit b4a8aae
authored
fix: resolve dependency mismatch and Windows encoding issues (anthropics#319)
* fix: resolve dependency mismatch and Windows encoding issues
Fixes anthropics#316, anthropics#317, anthropics#318
This PR addresses three bugs affecting the development environment:
1. requirements.txt outdated dependencies (anthropics#316)
- Updated anthropic version from 0.39.0 to 0.71.0 to match pyproject.toml
- Added missing POSIX newline at end of file
2. Windows UTF-8 encoding failures in validate_notebooks.py (anthropics#317)
- Added explicit encoding='utf-8' to file operations
- Configured stdout/stderr to use UTF-8 on Windows
- Fixes UnicodeDecodeError and UnicodeEncodeError on older Windows systems
3. Pre-commit hook environment mismatch (anthropics#318)
- Changed validate-notebooks hook to use 'language: system'
- Updated entry to use 'uv run python' for consistency with uv-based dependency management
Testing: All pre-commit hooks pass successfully
* refactor: remove redundant requirements.txt in
favor of pyproject.toml
Requirements.txt was causing sync issues with
pyproject.toml.
Since the project uses uv for dependency
management, pyproject.toml
and uv.lock are sufficient for managing
dependencies.1 parent 9fadbb7 commit b4a8aae
File tree
3 files changed
+8
-9
lines changed- scripts
3 files changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
13 | | - | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
0 commit comments