Skip to content

Commit 8c69f4f

Browse files
authored
Merge pull request #112 from Sparks29032/pc-ci
Migrate to pre-commit ci
2 parents 449eda4 + 26948e3 commit 8c69f4f

File tree

3 files changed

+14
-35
lines changed

3 files changed

+14
-35
lines changed

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
default_language_version:
22
python: python3
3+
ci:
4+
autofix_commit_msg: |
5+
[pre-commit.ci] auto fixes from pre-commit hooks
6+
autofix_prs: true
7+
autoupdate_branch: 'pre-commit-autoupdate'
8+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
9+
autoupdate_schedule: monthly
10+
skip: [no-commit-to-branch]
11+
submodules: false
312
repos:
413
- repo: https://github.com/pre-commit/pre-commit-hooks
514
rev: v4.4.0
@@ -25,10 +34,10 @@ repos:
2534
rev: 0.6.1
2635
hooks:
2736
- id: nbstripout
28-
- repo: local
37+
- repo: https://github.com/pre-commit/pre-commit-hooks
38+
rev: v4.4.0
2939
hooks:
30-
- id: prevent-commit-to-main
40+
- id: no-commit-to-branch
3141
name: Prevent Commit to Main Branch
32-
entry: ./prevent_commit_to_main.sh
33-
language: script
34-
stages: [commit]
42+
args: ["--branch", "main"]
43+
stages: [pre-commit]

prevent_commit_to_main.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)