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:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- 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
hooks:
- id: detect-secrets
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.1
- repo: https://gitlab.com/devopshq/gitlab-ci-linter.git
rev: v1.0.4
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
hooks:
- id: proselint
types: [plain-text]
exclude: LICENSE
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat.git
rev: 0.7.4
rev: 0.7.9
hooks:
- id: mdformat
- repo: https://git.shore.co.il/nimrod/shell-pre-commit.git
rev: v0.6.0
- repo: https://git.shore.co.il/nimrod/pre-commit-hooks.git
rev: v0.1.0
hooks:
- id: shell-lint
- id: shell-validate
- repo: https://github.com/shellcheck-py/shellcheck-py.git
rev: v0.7.2.1
hooks:
- id: shellcheck
- repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/
rev: v0.3.0
- repo: https://github.com/AleksaC/hadolint-py.git
rev: v2.1.0
hooks:
- id: hadolint
- id: docker-compose
......@@ -7,7 +7,7 @@ cgit container image.
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
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`.
## Example
......
ARG BASEIMAGE=debian:testing-slim
# hadolint ignore=DL3006
FROM ${BASEIMAGE}
# hadolint ignore=DL3008
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
netcat-openbsd \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment