Skip to content

Commit

Permalink
speed improvement on licenseheaders pre-commit partial files run (#911)
Browse files Browse the repository at this point in the history
When doing partial `pre-commit run` on staged changes, only run
`licenceheaders` on the changed files, not all of them.
  • Loading branch information
bpkroth authored Jan 4, 2025
1 parent 43cc81a commit 21b4f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
hooks:
- id: licenseheaders
files: '\.(sh|cmd|ps1|sql|py)$'
args: [-t, doc/mit-license.tmpl, -E, .py, .sh, .ps1, .sql, .cmd, -x, mlos_bench/setup.py, mlos_core/setup.py, mlos_viz/setup.py]
args: [-t, doc/mit-license.tmpl, -E, .py, .sh, .ps1, .sql, .cmd, -x, mlos_bench/setup.py, mlos_core/setup.py, mlos_viz/setup.py, -f]
require_serial: true
stages: [pre-commit, manual]
- repo: https://github.com/asottile/pyupgrade
Expand Down

0 comments on commit 21b4f05

Please sign in to comment.