Skip to content

Commit 94c5219

Browse files
authored
Switch to ruff format (#1852)
1 parent e1658db commit 94c5219

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,13 @@ repos:
3939
args:
4040
- --fix
4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: 'v0.1.1'
42+
rev: 'v0.1.3'
4343
hooks:
4444
- id: ruff
4545
args: [--fix, --exit-non-zero-on-fix]
46-
- repo: https://github.com/psf/black
47-
rev: 23.10.0
48-
hooks:
49-
- id: black
50-
language_version: python3
51-
entry: black --target-version=py38
46+
- id: ruff-format
5247
- repo: https://github.com/tox-dev/pyproject-fmt
53-
rev: 1.2.0
48+
rev: 1.3.0
5449
hooks:
5550
- id: pyproject-fmt
5651
- repo: https://github.com/abravalheri/validate-pyproject

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Pending
1414
* Added support for Django 5.0.
1515
* Refactor the ``utils.get_name_from_obj`` to simulate the behavior of
1616
``django.contrib.admindocs.utils.get_view_name``.
17+
* Switched from black to the `ruff formatter
18+
<https://astral.sh/blog/the-ruff-formatter>`__.
1719

1820
4.2.0 (2023-08-10)
1921
------------------

0 commit comments

Comments
 (0)