Skip to content

Commit

Permalink
ci(repo): sync with repo template
Browse files Browse the repository at this point in the history
  • Loading branch information
liblaf authored and github-actions[bot] committed Feb 22, 2024
1 parent 579799c commit 4c691e3
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 210 deletions.
1 change: 0 additions & 1 deletion .github/auto-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

language:
pullrequest: true
labelprefix: "lang: "

staleness:
pullrequest: true
Expand Down
2 changes: 1 addition & 1 deletion .github/blunderbuss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ assign_prs:
- liblaf

ignore_authors:
- dependabot
- dependabot[bot]
3 changes: 3 additions & 0 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/googleapis/repo-automation-bots/main/packages/sync-repo-settings/src/schema.json

branchProtectionRules: []
32 changes: 0 additions & 32 deletions .github/workflows/merge.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/pre-commit.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/template.yaml

This file was deleted.

130 changes: 2 additions & 128 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,130 +1,4 @@
ci:
autofix_commit_msg: "ci(pre-commit): auto fixes from pre-commit hooks"
autoupdate_commit_msg: "ci(pre-commit): pre-commit autoupdate"
skip:
- cspell
- poetry-lock
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.23.6
hooks:
- id: latexindent
files: \.(tex|sty|cls|bib)$
types:
- text
args:
- --overwriteIfDifferent
- --silent
- --local
- --cruft=/tmp/latexindent
- --modifylinebreaks
- --GCString
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
hooks:
- id: commitizen
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
files: \.(bash|sh|zsh)(\.tmpl)?$
types:
- text
- repo: https://github.com/liblaf/pre-commit-hooks
rev: v0.1.0
hooks:
- id: cargo-check
- id: cargo-clippy
- id: cargo-fmt
- id: cargo-test
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
types_or:
- c
- c++
- cuda
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
stages:
- pre-commit
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args:
- --maxkb=4096
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
exclude: ^tsconfig\.json$
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
args:
- --unsafe
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: name-tests-test
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/python-poetry/poetry
rev: 1.7.1
hooks:
- id: poetry-check
- id: poetry-export
args:
- --output=requirements.txt
- --without-hashes
- --without-urls
- id: poetry-install
- id: poetry-lock
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
files: \.(bash|sh|zsh)(\.tmpl)?$
types:
- text
args:
- --write
- --simplify
- --indent=2
- --case-indent
- --space-redirects
- repo: https://github.com/sirosen/texthooks
rev: 0.6.4
hooks:
- id: alphabetize-codeowners
- id: fix-ligatures
- id: fix-spaces
- id: forbid-bidi-controls
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.4.0
hooks:
- id: cspell
autoupdate_commit_msg: "ci(pre-commit): update pre-commit hooks"
repos: []

0 comments on commit 4c691e3

Please sign in to comment.