File tree Expand file tree Collapse file tree
src/sp_repo_review/checks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,10 @@ class PC190(PreCommit):
115115class PC140 (PreCommit ):
116116 "Uses a type checker"
117117
118- repos = {"https://github.com/pre-commit/mirrors-mypy" }
118+ repos = {
119+ "https://github.com/pre-commit/mirrors-mypy" ,
120+ "https://github.com/facebook/pyrefly-pre-commit" ,
121+ }
119122
120123
121124class PC160 (PreCommit ):
Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ def test_pc140():
134134 assert compute_check ("PC140" , precommit = precommit ).result
135135
136136
137+ def test_pc140_pyrefly ():
138+ precommit = yaml .safe_load ("""
139+ repos:
140+ - repo: https://github.com/facebook/pyrefly-pre-commit
141+ """ )
142+ assert compute_check ("PC140" , precommit = precommit ).result
143+
144+
137145def test_pc160_codespell ():
138146 precommit = yaml .safe_load ("""
139147 repos:
You can’t perform that action at this time.
0 commit comments