Skip to content

Commit 2358563

Browse files
committed
Add pyrefly and pyrefly-docs configuration
1 parent ab6dd5e commit 2358563

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ci:
4040
- vulture
4141
- vulture-docs
4242
- yamlfix
43+
- pyrefly
44+
- pyrefly-docs
4345

4446
default_install_hook_types: [pre-commit, pre-push, commit-msg]
4547

@@ -376,3 +378,21 @@ repos:
376378
types_or: [rst]
377379
additional_dependencies: [uv==0.9.5]
378380
stages: [pre-commit]
381+
382+
- id: pyrefly
383+
name: pyrefly
384+
stages: [pre-push]
385+
entry: uv run --extra=dev pyrefly check
386+
language: python
387+
types_or: [python, toml]
388+
pass_filenames: false
389+
additional_dependencies: [uv==0.9.5]
390+
391+
- id: pyrefly-docs
392+
name: pyrefly-docs
393+
stages: [pre-push]
394+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
395+
--command="pyrefly check"
396+
language: python
397+
types_or: [markdown, rst]
398+
additional_dependencies: [uv==0.9.5]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ optional-dependencies.dev = [
5454
"pylint[spelling]==4.0.4",
5555
"pylint-per-file-ignores==3.2.0",
5656
"pyproject-fmt==2.11.1",
57+
"pyrefly==0.46.1",
5758
"pyright==1.1.407",
5859
"pyroma==5.0.1",
5960
"pytest==9.0.2",

0 commit comments

Comments
 (0)