diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..5a5aa4e --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,14 @@ +name: Check +on: + push: + branches: + - main + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..fdcf2ec --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-merge-conflict + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/google/yamlfmt + rev: v0.12.1 + hooks: + - id: yamlfmt diff --git a/.yamlfmt.yaml b/.yamlfmt.yaml new file mode 100644 index 0000000..3d5816a --- /dev/null +++ b/.yamlfmt.yaml @@ -0,0 +1,4 @@ +line_ending: lf +formatter: + type: basic + retain_line_breaks_single: true