Skip to content

Commit

Permalink
Switch to ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Oct 27, 2023
1 parent e1658db commit 62c51fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,13 @@ repos:
args:
- --fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.1'
rev: 'v0.1.3'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black
language_version: python3
entry: black --target-version=py38
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.2.0
rev: 1.3.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
Expand Down
2 changes: 2 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Pending
* Added support for Django 5.0.
* Refactor the ``utils.get_name_from_obj`` to simulate the behavior of
``django.contrib.admindocs.utils.get_view_name``.
* Switched from black to the `ruff formatter
<https://astral.sh/blog/the-ruff-formatter>`__.

4.2.0 (2023-08-10)
------------------
Expand Down

0 comments on commit 62c51fe

Please sign in to comment.