Commit 64c7594d authored by nimrod's avatar nimrod
Browse files

Add pre-commit.

parent 22c388da
Loading
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
---
include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml

build:
  stage: build
  image: buildpack-deps:bullseye
  before_script:
    - apt-get update
    - apt-get install -y meson golang systemd podman go-md2man bash-completion shellcheck cmake
    - >-
      apt-get install -y
      bash-completion
      cmake
      golang
      go-md2man
      meson
      podman
      shellcheck
      systemd
    - git clone https://github.com/containers/toolbox.git
    - cd toolbox
  script:
+37 −0
Original line number Diff line number Diff line
---
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks.git
    rev: v3.4.0
    hooks:
      - id: check-added-large-files
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: check-symlinks
      - id: trailing-whitespace

  - repo: https://github.com/Yelp/detect-secrets
    rev: v0.14.3
    hooks:
      - id: detect-secrets

  - repo: https://github.com/adrienverge/yamllint
    rev: v1.25.0
    hooks:
      - id: yamllint

  - repo: https://github.com/amperser/proselint/
    rev: 0.10.2
    hooks:
      - id: proselint
        types: [plain-text]
        exclude: LICENSE

  - repo: https://github.com/executablebooks/mdformat.git
    rev: 0.5.3
    hooks:
      - id: mdformat

  - repo: https://gitlab.freedesktop.org/nimrod/ci-templates.git
    rev: fd4100029a3d54e5184408313ca602f691f359b6
    hooks:
      - id: ci-fairy
+6 −6
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@

Build [toolbox](https://github.com/containers/toolbox/).

Until there's Debian packaging for it, [build it
myself](https://git.shore.co.il/shore/toolbox-build/-/jobs/artifacts/master/raw/toolbox/builddir/src/toolbox?job=build).
Until there's Debian packaging for it,
[build it myself](https://git.shore.co.il/shore/toolbox-build/-/jobs/artifacts/master/raw/toolbox/builddir/src/toolbox?job=build).

## License

@@ -13,7 +13,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).

## Author Information

Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website](
https://www.shore.co.il/). Patches are welcome via [`git send-email`](
http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located
at: <https://git.shore.co.il/nimrod/>.
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
[website](https://www.shore.co.il/). Patches are welcome via
[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
is located at: <https://git.shore.co.il/expore/>.