Template
Compare commits
1
Commits
main
..
a3d207fab8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3d207fab8 |
@@ -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@v6
|
||||||
|
- uses: actions/setup-python@v6
|
||||||
|
- run: pip install pre-commit
|
||||||
|
shell: bash
|
||||||
|
- name: Pre Commit
|
||||||
|
run: SKIP=no-commit-to-branch pre-commit run -a
|
||||||
|
shell: bash
|
||||||
+21
-4
@@ -24,13 +24,13 @@ 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.14.13
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 26.5.1
|
rev: 25.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--config=pyproject.toml]
|
args: [--config=pyproject.toml]
|
||||||
@@ -39,14 +39,31 @@ 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.15.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.3.4
|
||||||
|
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.36.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-jsonschema
|
- id: check-jsonschema
|
||||||
name: Check Gitea Workflows
|
name: Check Gitea Workflows
|
||||||
|
|||||||
Reference in New Issue
Block a user