Skip to content

Commit e604edd

Browse files
authored
Use uv-managed pyrefly in pre-commit (#20)
1 parent cc69436 commit e604edd

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ repos:
3838
hooks:
3939
- id: validate-pyproject
4040
additional_dependencies: ["validate-pyproject-schema-store[all]"]
41-
- repo: https://github.com/facebook/pyrefly-pre-commit
42-
rev: 0.0.1
41+
- repo: local
4342
hooks:
4443
- id: pyrefly-typecheck-system
44+
name: pyrefly-typecheck-system
45+
entry: uv run pyrefly check
46+
language: system
4547
pass_filenames: false

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ uv sync --dev
429429
pre-commit install
430430
431431
# Check types
432-
pyrefly check --summarize-errors
432+
uv run pyrefly check --summarize-errors
433433
434434
# Run tests that don't require GPUs
435-
pytest -vrs
435+
uv run pytest -vrs
436436
```
437437

438438
### Hugging Face

0 commit comments

Comments
 (0)