Skip to content

Commit 61603f6

Browse files
authored
Fix: pre-commit 변경 (#133)
* 기존에 사용하고 있던 black, isort, pycln을 삭제했습니다. * Pre-commit에서 Ruff를 사용하도록 수정했습니다.
1 parent 9094234 commit 61603f6

5 files changed

Lines changed: 45 additions & 574 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
reporter: java-junit
5454

5555
# run pre-commit only different from base branch
56-
# it contains pylint, black, isort, etc.
56+
# it contains ruff, pyright, etc.
5757
- name: Run pre-commit
5858
run: |
5959
git fetch origin ${{ github.base_ref }}

.pre-commit-config.yaml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,14 @@ repos:
77
- id: trailing-whitespace
88
- id: detect-private-key
99

10-
- repo: local
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.15.9
1112
hooks:
12-
- id: black
13-
name: black
14-
entry: black
15-
language: system
16-
types: [python]
17-
args:
18-
- --line-length=88
13+
- id: ruff
14+
args: [ --fix ]
15+
- id: ruff-format
1916

2017
- repo: https://github.com/RobertCraigie/pyright-python
2118
rev: v1.1.314
2219
hooks:
2320
- id: pyright
24-
25-
- repo: https://github.com/hadialqattan/pycln
26-
rev: v2.5.0
27-
hooks:
28-
- id: pycln
29-
args: [--config=pyproject.toml]
30-
31-
- repo: https://github.com/pycqa/isort
32-
rev: 5.12.0
33-
hooks:
34-
- id: isort
35-
36-
- repo: local
37-
hooks:
38-
- id: pylint
39-
name: pylint
40-
entry: pylint
41-
language: system
42-
types: [python]
43-
args: [
44-
"-rn", # Only display messages
45-
"-sn", # Don't display the score
46-
"--rcfile=.pylintrc", # Link to your config file
47-
"-j", "0" # Use all available cores
48-
]

0 commit comments

Comments
 (0)