Commit 840ad26
committed
Run pre-commit in CI on a lint-only environment
pre-commit has never run in GitHub Actions; only the external
pre-commit.ci service ran it. Now that the formatting hooks are skipped
there, because they need an environment that service does not build,
this job runs them.
It installs the "lint" extra alone, read out of pyproject.toml at run
time so the versions are not restated in the workflow. That needs
neither torch nor the optional dependencies, unlike static-checks, which
installs .[all,testing] before running formatters.
static-checks is left unchanged. Running both routes keeps the copyright
and pyrefly coverage it provides, and makes CI fail if pre-commit and
runtests.sh ever disagree about the same files.
Signed-off-by: Hans Johnson <hans-johnson@uiowa.edu>1 parent 7e50b13 commit 840ad26
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
55 | 83 | | |
56 | 84 | | |
57 | 85 | | |
| |||
0 commit comments