Skip to content

Commit 4b1a6d5

Browse files
committed
Add pre-commit configuration
1 parent fb152f0 commit 4b1a6d5

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/dependabot.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"

.github/workflows/precommit.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: pre-commit
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.13"
15+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
- repo: https://github.com/Lucas-C/pre-commit-hooks
3+
rev: v1.5.5
4+
hooks:
5+
- id: remove-tabs
6+
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v6.0.0
9+
hooks:
10+
- id: trailing-whitespace
11+
- id: check-merge-conflict
12+
- id: end-of-file-fixer
13+
- id: check-added-large-files
14+
- id: check-case-conflict
15+
- id: check-json
16+
- id: check-symlinks
17+
- id: detect-private-key
18+
19+
- repo: https://github.com/adrienverge/yamllint.git
20+
rev: v1.37.1
21+
hooks:
22+
- id: yamllint
23+
24+
- repo: https://github.com/astral-sh/ruff-pre-commit
25+
rev: v0.14.2
26+
hooks:
27+
- id: ruff-check
28+
- id: ruff-format

0 commit comments

Comments
 (0)