Skip to content

Commit b34fbed

Browse files
committed
change to ruff
1 parent 1893124 commit b34fbed

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

Diff for: .pre-commit-config.yaml

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.2.0
6-
hooks:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111

12-
- repo: https://github.com/omnilib/ufmt
13-
rev: v2.1.0
14-
hooks:
15-
- id: ufmt
16-
additional_dependencies:
17-
- black == 23.3.0
18-
- usort == 1.0.6
19-
- ufmt == 2.1.0
20-
- libcst == 1.0.1
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
# Ruff version.
14+
rev: v0.4.4
15+
hooks:
16+
# Run the linter.
17+
- id: ruff
18+
args: [ --fix ]
19+
# Run the formatter.
20+
- id: ruff-format
21+
2122

2223
# missing host field?
2324
# - repo: https://github.com/pre-commit/mirrors-clang-format

Diff for: pyproject.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ dependencies = [
2323

2424
[project.optional-dependencies]
2525
dev = [
26-
"black==23.3.0",
27-
"usort==1.0.6",
28-
"ufmt==2.1.0",
29-
"libcst==1.0.1",
30-
"pre-commit==3.6.0",
26+
"ruff",
3127
"bumpver",
3228
"pip-tools",
3329
"pytest",

0 commit comments

Comments
 (0)