Skip to content

Commit 856e05e

Browse files
committed
Move to ruff as formatter in CI
1 parent f9824d2 commit 856e05e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.8.0
4-
hooks:
5-
- id: black
6-
72
- repo: https://github.com/pre-commit/mirrors-mypy
83
rev: v0.991
94
hooks:
105
- id: mypy
116
args: [--ignore-missing-imports]
127

138
- repo: https://github.com/charliermarsh/ruff-pre-commit
14-
rev: v0.0.158
9+
rev: v0.2.1
1510
hooks:
11+
# Run the linter.
1612
- id: ruff
13+
# Run the formatter.
14+
- id: ruff-format
1715

1816
- repo: https://github.com/pre-commit/pre-commit-hooks
1917
rev: v4.1.0

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,3 @@ ruff = "pylsp_ruff.plugin"
3232

3333
[tool.pytest.ini_options]
3434
pythonpath = ["."]
35-
36-
[tool.black]
37-
target-version = ['py36', 'py37', 'py38', 'py39', 'py310', 'py311']
38-
line-length = 88

0 commit comments

Comments
 (0)