Skip to content

Commit 700c4a0

Browse files
committed
Switch to ruff
1 parent e754120 commit 700c4a0

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

.pre-commit-config.yaml

+7-17
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22
# SPDX-License-Identifier: MIT
33

44
repos:
5-
- repo: https://github.com/python/black
6-
rev: 23.12.1
7-
hooks:
8-
- name: Run black
9-
id: black
10-
- repo: https://github.com/pycqa/isort
11-
rev: 5.13.2
12-
hooks:
13-
- id: isort
14-
name: Sort Python imports
15-
args: ["--profile", "black", "--filter-files"]
165
- repo: https://github.com/fsfe/reuse-tool
176
rev: v2.1.0
187
hooks:
@@ -27,10 +16,11 @@ repos:
2716
id: end-of-file-fixer
2817
- name: Trim trailing whitespace
2918
id: trailing-whitespace
30-
- repo: local
19+
- repo: https://github.com/astral-sh/ruff-pre-commit
20+
rev: v0.1.14
3121
hooks:
32-
- name: Run pylint
33-
id: pylint
34-
entry: pylint
35-
language: system
36-
types: [python]
22+
- id: ruff
23+
name: Lint via ruff
24+
args: [--fix]
25+
- id: ruff-format
26+
name: Format via ruff

requirements-dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
# SPDX-License-Identifier: MIT
33

44
pre-commit~=3.6
5-
pylint~=3.0

ruff.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
select = ["D", "PL", "UP", "I"]
2+
ignore = ["D213", "D203"]

0 commit comments

Comments
 (0)