Skip to content

Commit f312ec1

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

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.github/workflows/python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
13+
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}

.pre-commit-config.yaml

+4-6
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

-4
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)