File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : pre-commit
1+ name : prek
22
33on :
44 push :
77 pull_request :
88
99jobs :
10- pre-commit :
10+ prek :
1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
2222 run : pip install ".[dev]"
2323 - name : Install pyrefly
2424 run : pip install pyrefly==0.44.1
25- - name : Run pre-commit
26- uses : pre-commit/action@v3.0.1
25+ - name : Run prek
26+ run : prek run --all-files
Original file line number Diff line number Diff line change 1- # See https://pre-commit.com for more information
2- # See https://pre-commit.com/hooks.html for more hooks
1+ default_language_version :
2+ python : python3.10
33repos :
44- repo : https://github.com/pre-commit/pre-commit-hooks
55 rev : v6.0.0
2121 # Run the linter.
2222 - id : ruff
2323 args : [ --fix ]
24- # Run the formatter.
2524 - id : ruff-format
2625
2726- repo : https://github.com/asottile/pyupgrade
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ dependencies = [
3030
3131[project .optional-dependencies ]
3232dev = [
33- " pre-commit==3.6.0 " ,
33+ " prek>=0.2.27 " ,
3434 " bumpver" ,
3535 " pip-tools" ,
3636 " pytest" ,
You can’t perform that action at this time.
0 commit comments