Skip to content

Commit 8876d2e

Browse files
committed
ci(pre-commit): Replace black and flake8 with ruff
1 parent fc4e795 commit 8876d2e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ repos:
33
rev: v2.3.0
44
hooks:
55
- id: trailing-whitespace
6-
- id: flake8
76
- id: check-merge-conflict
87
- id: check-yaml
98
- id: check-executables-have-shebangs
109
- id: mixed-line-ending
11-
- repo: https://github.com/psf/black
12-
rev: stable
13-
hooks:
14-
- id: black
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.6.8
12+
hooks:
13+
- id: ruff
14+
args: [ --fix ]
15+
- id: ruff-format
1516
- repo: local
1617
hooks:
1718
- id: version-check

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""Sphinx configuration file."""
3+
34
import time
45

56
author = "Jan Holthuis"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ include = [
3535
"/sphinx_multiversion",
3636
]
3737

38-
[tool.black]
38+
[tool.ruff]
3939
line-length = 79

0 commit comments

Comments
 (0)