diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..76ecf0777f224f59b7d697ac99d633d4c130a34f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +--- +stages: + - check-yaml + +check-yaml: + stage: check-yaml + image: python:3.8.3-slim-buster + script: + - pip install pyyaml + - python -c 'import yaml, sys; print(yaml.safe_load(sys.stdin))' < *.ya?ml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b3a82910aaa93a68bec1463ff2e65a4bb02cba2c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v1.2.3 + hooks: + - id: check-yaml \ No newline at end of file diff --git a/pre-commit-requirements.txt b/pre-commit-requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..e42b23c12b6789895889341b0308d8ee06a43052 --- /dev/null +++ b/pre-commit-requirements.txt @@ -0,0 +1 @@ +pre-commit \ No newline at end of file