mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
Meta: Add .pre-commit-config.yaml
This pre-commit config is quite simple: all it does for now is running the already existing Meta/lint-ci.sh script to ensure no changes that won't pass the CI linting step are committed. Consequently pass_filenames is set to false, as these scripts will determine which files to check themselves - should this ever become a performance bottleneck, we can update them to accept an optional list of filenames. It should be noted that using pre-commit for Serenity development is by no means a requirement, but doing so may decrease the number of CI builds failing due to forgotten license headers etc. - especially if you're pushing to `master` directly, rather than going through pull requests *hint hint*. For info how to install & use pre-commit, see https://pre-commit.com/. Fixes #2365.
This commit is contained in:
parent
9453032bf6
commit
ac2358ff0d
Notes:
sideshowbarker
2024-07-19 00:57:35 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/ac2358ff0d3 Pull-request: https://github.com/SerenityOS/serenity/pull/4370 Issue: https://github.com/SerenityOS/serenity/issues/2365
1 changed files with 8 additions and 0 deletions
8
.pre-commit-config.yaml
Normal file
8
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: meta-lint-ci
|
||||
name: Running Meta/lint-ci.sh to ensure changes will pass linting on CI
|
||||
entry: bash Meta/lint-ci.sh
|
||||
language: system
|
||||
pass_filenames: false
|
Loading…
Reference in a new issue