Skip to content
Snippets Groups Projects
Commit 449c05f4 authored by nimrod's avatar nimrod
Browse files

Pre-commit updates and fixes.

- New, updated or migrated pre-commit hooks.
- Fix found issues.
parent ab57a8b1
No related branches found
No related tags found
No related merge requests found
Pipeline #2203 passed
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git - repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0 rev: v4.0.1
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict - id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks - id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
exclude: .\.diff$ exclude: \.diff$
- repo: https://github.com/Yelp/detect-secrets - repo: https://github.com/codespell-project/codespell.git
rev: v2.1.0
hooks:
- id: codespell
- repo: https://github.com/Yelp/detect-secrets.git
rev: v1.1.0 rev: v1.1.0
hooks: hooks:
- id: detect-secrets - id: detect-secrets
- repo: https://github.com/adrienverge/yamllint - repo: https://gitlab.com/devopshq/gitlab-ci-linter.git
rev: v1.26.1 rev: v1.0.4
hooks: hooks:
- id: yamllint - id: gitlab-ci-linter
args:
- "--server"
- https://git.shore.co.il
- repo: https://github.com/amperser/proselint/ - repo: https://github.com/amperser/proselint.git
rev: 0.10.2 rev: 0.10.2
hooks: hooks:
- id: proselint - id: proselint
types: [plain-text] types: [plain-text]
exclude: LICENSE exclude: LICENSE
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat.git - repo: https://github.com/executablebooks/mdformat.git
rev: 0.7.4 rev: 0.7.9
hooks: hooks:
- id: mdformat - id: mdformat
- repo: https://git.shore.co.il/nimrod/shell-pre-commit.git - repo: https://git.shore.co.il/nimrod/pre-commit-hooks.git
rev: v0.6.0 rev: v0.1.0
hooks: hooks:
- id: shell-lint - id: shell-validate
- repo: https://github.com/shellcheck-py/shellcheck-py.git - repo: https://github.com/shellcheck-py/shellcheck-py.git
rev: v0.7.2.1 rev: v0.7.2.1
hooks: hooks:
- id: shellcheck - id: shellcheck
- repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/ - repo: https://github.com/AleksaC/hadolint-py.git
rev: v0.3.0 rev: v2.1.0
hooks: hooks:
- id: hadolint - id: hadolint
- id: docker-compose
...@@ -7,7 +7,7 @@ cgit container image. ...@@ -7,7 +7,7 @@ cgit container image.
This container runs Apache that is configured with cgit at `/cgit`. It exposes This container runs Apache that is configured with cgit at `/cgit`. It exposes
port 80 and serves the repositories under `/srv/git`. The container runs as port 80 and serves the repositories under `/srv/git`. The container runs as
a limited user (`www-data`), so make sure to have the content of `/srv/git` a limited user (`www-data`), so make sure to have the content of `/srv/git`
readble by it. Also, if you wish to persist the cache, the location is readable by it. Also, if you wish to persist the cache, the location is
`/var/cache/cgit`. `/var/cache/cgit`.
## Example ## Example
......
ARG BASEIMAGE=debian:testing-slim ARG BASEIMAGE=debian:testing-slim
# hadolint ignore=DL3006
FROM ${BASEIMAGE} FROM ${BASEIMAGE}
# hadolint ignore=DL3008
RUN apt-get update && \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
netcat-openbsd \ netcat-openbsd \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment