Template
Compare commits
1
Commits
main
..
06e2938f4c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06e2938f4c |
@@ -0,0 +1,18 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-commit-lint:
|
||||||
|
name: pre-commit Linting
|
||||||
|
runs-on: pi
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
||||||
|
- run: pip install pre-commit
|
||||||
|
shell: bash
|
||||||
|
- name: Pre Commit
|
||||||
|
run: SKIP=no-commit-to-branch pre-commit run -a
|
||||||
|
shell: bash
|
||||||
+19
-2
@@ -24,7 +24,7 @@ repos:
|
|||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.16.8
|
rev: v0.15.22
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
@@ -41,12 +41,29 @@ repos:
|
|||||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||||
rev: v2.16.0
|
rev: v2.16.0
|
||||||
hooks:
|
hooks:
|
||||||
|
- id: pretty-format-ini
|
||||||
|
args: [--autofix]
|
||||||
- id: pretty-format-yaml
|
- id: pretty-format-yaml
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
- id: pretty-format-toml
|
- id: pretty-format-toml
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
exclude: (^poetry.lock$)
|
exclude: (^poetry.lock$)
|
||||||
|
|
||||||
|
- repo: https://github.com/frnmst/md-toc
|
||||||
|
rev: 9.0.0
|
||||||
|
hooks:
|
||||||
|
- id: md-toc
|
||||||
|
|
||||||
|
- repo: https://github.com/Lucas-C/pre-commit-hooks-java
|
||||||
|
rev: 1.3.10
|
||||||
|
hooks:
|
||||||
|
- id: validate-html
|
||||||
|
|
||||||
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
||||||
|
rev: 0.4.1
|
||||||
|
hooks:
|
||||||
|
- id: auto-walrus
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: v4.0.0-alpha.8
|
rev: v4.0.0-alpha.8
|
||||||
hooks:
|
hooks:
|
||||||
@@ -62,7 +79,7 @@ repos:
|
|||||||
- mdformat-gfm
|
- mdformat-gfm
|
||||||
|
|
||||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
rev: 0.38.1
|
rev: 0.37.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-jsonschema
|
- id: check-jsonschema
|
||||||
name: Check Gitea Workflows
|
name: Check Gitea Workflows
|
||||||
|
|||||||
Reference in New Issue
Block a user