diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14301dccf..b88a5795e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/docs/changes.rst b/docs/changes.rst index 8985002e6..a13ca5b0f 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -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 + `__. 4.2.0 (2023-08-10) ------------------