Skip to content

Commit c581a5c

Browse files
author
JiayuXu
committed
test: 测试修复后的pre-commit配置
1 parent 0d33ec5 commit c581a5c

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@ repos:
99
- id: check-merge-conflict
1010
- id: debug-statements
1111

12-
- repo: https://github.com/psf/black
13-
rev: 23.12.1
14-
hooks:
15-
- id: black
16-
language_version: python3.11
17-
args: [--line-length=88]
18-
19-
- repo: https://github.com/pycqa/isort
20-
rev: 5.13.2
21-
hooks:
22-
- id: isort
23-
args: [--profile=black, --line-length=88]
24-
2512
- repo: https://github.com/astral-sh/ruff-pre-commit
2613
rev: v0.1.9
2714
hooks:

test_precommit.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def test_function(x: int, y: str) -> str:
2+
result = f"{x}:{y}"
3+
return result
4+
5+
6+
print("Testing pre-commit hooks...")

0 commit comments

Comments
 (0)