diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 68505d6..1658c16 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,7 @@ version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: github-actions + directory: / schedule: interval: daily - open-pull-requests-limit: 10 + open-pull-requests-limit: 2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fbf4d7e..77cea31 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,37 +2,24 @@ name: Lint "on": push: - branches: - - main + branches: [main] pull_request: + branches: [main] jobs: - actionlint: + pre-commit: runs-on: ubuntu-latest steps: # https://github.com/actions/checkout - name: checkout uses: actions/checkout@v4 - # https://github.com/rhysd/actionlint - - name: run actionlint - uses: docker://rhysd/actionlint:latest - with: - args: -color - - pre-commit: - runs-on: ubuntu-latest - steps: - # https://github.com/actions/checkout - - name: checkout - uses: actions/checkout@v4 - - # https://github.com/actions/setup-python - - name: sest up python - uses: actions/setup-python@v5 + # https://github.com/actions/setup-python + - name: setup python + uses: actions/setup-python@v5 - # https://github.com/pre-commit/action - - name: run pre-commit - uses: pre-commit/action@v3.0.1 - env: - SKIP: no-commit-to-branch + # https://github.com/pre-commit/action + - name: run pre-commit + uses: pre-commit/action@v3.0.1 + env: + SKIP: no-commit-to-branch diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84f4664..a27f338 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,37 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 hooks: - - id: check-added-large-files - - id: check-case-conflict - - id: check-merge-conflict - - id: check-symlinks - - id: mixed-line-ending + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks + - id: mixed-line-ending args: - - --fix=lf - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: detect-private-key - - id: no-commit-to-branch + - --fix=lf + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: detect-private-key + - id: no-commit-to-branch args: - - --branch - - main + - --branch + - main + - repo: https://github.com/rhysd/actionlint + rev: v1.7.7 + hooks: + - id: actionlint-docker + name: check github workflows with actionlint + + # suspending this as of 1-May-2025: I can't get this hook to stop + # over-indenting the entire .pre-commit-hooks.yaml file by 2 spaces + # - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt + # rev: 0.2.3 + # hooks: + # - id: yamlfmt + # args: + # - --mapping=2 + # - --sequence=4 + # - --offset=2 + # - --implicit_start + # - --preserve-quotes diff --git a/.yamllint.yaml b/.yamllint.yaml deleted file mode 100644 index f339adf..0000000 --- a/.yamllint.yaml +++ /dev/null @@ -1,8 +0,0 @@ -extends: default - -rules: - line-length: disable - comments-indentation: disable - document-start: disable - truthy: - allowed-values: ['true', 'false', 'on']