mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore: improved pre-commit settings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user