Template
Compare commits
1
Commits
main
..
dc910ceaa1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc910ceaa1 |
@@ -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
|
||||||
@@ -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.5
|
rev: v0.15.1
|
||||||
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: 26.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--config=pyproject.toml]
|
args: [--config=pyproject.toml]
|
||||||
@@ -79,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.0
|
rev: 0.36.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-jsonschema
|
- id: check-jsonschema
|
||||||
name: Check Gitea Workflows
|
name: Check Gitea Workflows
|
||||||
|
|||||||
Reference in New Issue
Block a user