mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Add pre-commit hooks
This commit is contained in:
parent
6df818503e
commit
c72f9abc2b
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -16,6 +16,7 @@
|
||||||
!.cmake-format.json
|
!.cmake-format.json
|
||||||
!.gitattributes
|
!.gitattributes
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!.pre-commit-config.yaml
|
||||||
!BUILDING.md
|
!BUILDING.md
|
||||||
!buildspec.json
|
!buildspec.json
|
||||||
!CMakeLists.txt
|
!CMakeLists.txt
|
||||||
|
|
|
||||||
24
.pre-commit-config.yaml
Normal file
24
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
|
rev: v16.0.6
|
||||||
|
hooks:
|
||||||
|
- id: clang-format
|
||||||
|
args: [-fallback-style=none]
|
||||||
|
types_or: [c++, c]
|
||||||
|
exclude: |
|
||||||
|
(?x)^(
|
||||||
|
deps/.*|
|
||||||
|
tests/catch\.hpp|
|
||||||
|
.*\.mm
|
||||||
|
)$
|
||||||
|
|
||||||
|
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
||||||
|
rev: v0.6.13
|
||||||
|
hooks:
|
||||||
|
- id: cmake-format
|
||||||
|
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
rev: v0.3.2
|
||||||
|
hooks:
|
||||||
|
- id: ruff-format
|
||||||
|
types_or: [python]
|
||||||
|
|
@ -22,4 +22,5 @@ sudo snap install obs-studio
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
- If you wish to contribute code to the project, have a look at this [section](BUILDING.md) describing how to compile the plugin.
|
- If you wish to contribute code to the project, have a look at this [section](BUILDING.md) describing how to compile the plugin.
|
||||||
|
- You can optionally use [pre-commit](https://pre-commit.com) to automatically handle formatting.
|
||||||
- If you wish to contribute translations, feel free to submit pull requests for the corresponding files under `data/locale`.
|
- If you wish to contribute translations, feel free to submit pull requests for the corresponding files under `data/locale`.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user