mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-29 16:54:34 +02:00
Compare commits
No commits in common. "2ecbd75d64a6f48a8baaf61145d684ff880ea986" and "70df8364b38137011b540cf39821967c91c41efa" have entirely different histories.
2ecbd75d64
...
70df8364b3
16 changed files with 12 additions and 111 deletions
|
@ -23,6 +23,6 @@ indent_size = 2
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
max_line_length = 98
|
max_line_length = 98
|
||||||
|
|
||||||
[*.yml]
|
[{.forgejo/**/*.yml,.github/**/*.yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
name: prefligit
|
|
||||||
description: |
|
|
||||||
Runs prefligit, pre-commit reimplemented in Rust.
|
|
||||||
inputs:
|
|
||||||
extra_args:
|
|
||||||
description: options to pass to pre-commit run
|
|
||||||
required: false
|
|
||||||
default: '--all-files'
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Install uv
|
|
||||||
uses: https://github.com/astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
ignore-nothing-to-cache: true
|
|
||||||
- name: Install Prefligit
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prefligit/releases/download/v0.0.10/prefligit-installer.sh | sh
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.cache/prefligit
|
|
||||||
key: prefligit-0|${{ hashFiles('.pre-commit-config.yaml') }}
|
|
||||||
- run: prefligit run --show-diff-on-failure --color=always -v ${{ inputs.extra_args }}
|
|
||||||
shell: bash
|
|
|
@ -1,22 +0,0 @@
|
||||||
name: Checks / Prefligit
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
prefligit:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
FROM_REF: ${{ github.event.pull_request.base.sha || (!github.event.forced && ( github.event.before != '0000000000000000000000000000000000000000' && github.event.before || github.sha )) || format('{0}~', github.sha) }}
|
|
||||||
TO_REF: ${{ github.sha }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
- uses: ./.forgejo/actions/prefligit
|
|
||||||
with:
|
|
||||||
extra_args: --all-files --hook-stage manual
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Checks / Rust
|
name: Rust Checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
|
@ -5,5 +5,3 @@ f419c64aca300a338096b4e0db4c73ace54f23d0
|
||||||
# use chain_width 60
|
# use chain_width 60
|
||||||
162948313c212193965dece50b816ef0903172ba
|
162948313c212193965dece50b816ef0903172ba
|
||||||
5998a0d883d31b866f7c8c46433a8857eae51a89
|
5998a0d883d31b866f7c8c46433a8857eae51a89
|
||||||
# trailing whitespace and newlines
|
|
||||||
46c193e74b2ce86c48ce802333a0aabce37fd6e9
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
default_install_hook_types:
|
|
||||||
- pre-commit
|
|
||||||
- commit-msg
|
|
||||||
default_stages:
|
|
||||||
- pre-commit
|
|
||||||
- manual
|
|
||||||
|
|
||||||
repos:
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v5.0.0
|
|
||||||
hooks:
|
|
||||||
- id: check-byte-order-marker
|
|
||||||
- id: check-case-conflict
|
|
||||||
- id: check-symlinks
|
|
||||||
- id: destroyed-symlinks
|
|
||||||
- id: check-yaml
|
|
||||||
- id: check-json
|
|
||||||
- id: check-toml
|
|
||||||
- id: end-of-file-fixer
|
|
||||||
- id: trailing-whitespace
|
|
||||||
- id: mixed-line-ending
|
|
||||||
- id: check-merge-conflict
|
|
||||||
- id: check-added-large-files
|
|
||||||
|
|
||||||
- repo: https://github.com/crate-ci/typos
|
|
||||||
rev: v1.26.0
|
|
||||||
hooks:
|
|
||||||
- id: typos
|
|
||||||
|
|
||||||
- repo: local
|
|
||||||
hooks:
|
|
||||||
- id: cargo-fmt
|
|
||||||
name: cargo fmt
|
|
||||||
entry: cargo +nightly fmt --
|
|
||||||
language: system
|
|
||||||
types: [rust]
|
|
||||||
pass_filenames: false
|
|
||||||
stages:
|
|
||||||
- pre-commit
|
|
||||||
|
|
||||||
- repo: local
|
|
||||||
hooks:
|
|
||||||
- id: cargo-clippy
|
|
||||||
name: cargo clippy
|
|
||||||
language: system
|
|
||||||
types: [rust]
|
|
||||||
pass_filenames: false
|
|
||||||
entry: cargo clippy --workspace --locked --no-deps --profile test -- -D warnings
|
|
||||||
stages:
|
|
||||||
- pre-commit
|
|
|
@ -34,3 +34,4 @@ services:
|
||||||
# - "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt"
|
# - "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt"
|
||||||
|
|
||||||
# vim: ts=2:sw=2:expandtab
|
# vim: ts=2:sw=2:expandtab
|
||||||
|
|
||||||
|
|
|
@ -605,3 +605,4 @@ ul#searchresults span.teaser em {
|
||||||
margin-inline-start: -14px;
|
margin-inline-start: -14px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue