Skip to content

Commit acb0a58

Browse files
committed
check whether all hooks are respected
1 parent f3864c4 commit acb0a58

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This file is part of the tschm/.config-templates repository
2+
# (https://github.com/tschm/.config-templates).
3+
#
4+
# Workflow: Pre-commit
5+
#
6+
# Purpose: This workflow runs pre-commit checks to ensure code quality
7+
# and consistency across the codebase. It helps catch issues
8+
# like formatting errors, linting issues, and other code quality
9+
# problems before they are merged.
10+
#
11+
# Trigger: This workflow runs on every push and on pull requests to main/master
12+
# branches (including from forks)
13+
#
14+
# Components:
15+
# - 🔍 Run pre-commit checks using reusable action
16+
17+
name: "PRE-COMMIT"
18+
permissions:
19+
contents: read
20+
21+
on:
22+
push:
23+
pull_request:
24+
branches: [ main, master ]
25+
26+
jobs:
27+
pre-commit:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v5
32+
- uses: actions/setup-python@v6
33+
with:
34+
python-version: '3.14'
35+
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)