chore: improved pre-commit settings

This commit is contained in:
Michele Cereda
2023-05-06 12:28:46 +02:00
parent fc50b90bce
commit 3ed48b194b
4 changed files with 5 additions and 2 deletions

View File

@@ -5,5 +5,6 @@ override:
style: style:
- DL3006 # always tag the version of an image explicitly - DL3006 # always tag the version of an image explicitly
- DL3008 # pin versions in apt get install - DL3008 # pin versions in apt get install
- DL3013 # pin versions in pip
- DL3015 # avoid additional packages by specifying `--no-install-recommends` - DL3015 # avoid additional packages by specifying `--no-install-recommends`
- DL3018 # pin versions in apk add - DL3018 # pin versions in apk add

View File

@@ -12,6 +12,7 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-json - id: check-json
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/markdownlint/markdownlint - repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0 rev: v0.12.0

View File

@@ -3,6 +3,7 @@
# more information # more information
extends: default extends: default
rules: rules:
line-length: line-length:
allow-non-breakable-inline-mappings: true allow-non-breakable-inline-mappings: true

View File

@@ -1,8 +1,8 @@
FROM python:alpine FROM python:alpine
RUN pip3 --no-cache-dir install flask jsonpatch RUN pip3 --no-cache-dir install flask jsonpatch
ADD webhook.py / COPY webhook.py /
USER nobody USER nobody
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT python3 /webhook.py ENTRYPOINT [ "python3", "/webhook.py" ]