From 6664f188b24fc210ca0540a46a141612d9d723c9 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Thu, 9 Nov 2023 16:51:27 +0100 Subject: [PATCH] Use ruff instead of black for formatting --- CHANGELOG.md | 1 + README.md | 1 - pyproject.toml | 6 ++---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f064acf..6acd567 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 23.4 (in development) +- Use ruff instead of black for formatting (). - Remove support for Python 3.7 (EOL) (#406). ## 23.3 (2023-06-03) diff --git a/README.md b/README.md index f1eac5f..3c7ff5a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![CI](https://github.com/zostera/django-icons/workflows/CI/badge.svg?branch=main)](https://github.com/zostera/django-icons/actions?workflow=CI) [![Coverage Status](https://coveralls.io/repos/github/zostera/django-icons/badge.svg?branch=main)](https://coveralls.io/github/zostera/django-icons?branch=main) [![Latest PyPI version](https://img.shields.io/pypi/v/django-icons.svg)](https://pypi.python.org/pypi/django-icons) -[![Any color you like](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) ### Icons for Django diff --git a/pyproject.toml b/pyproject.toml index 50093c2..5165c5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,8 +103,7 @@ clean = "rm -rf docs/_build" [tool.hatch.envs.lint] dependencies = [ - "black>=23.3.0", - "ruff>=0.0.270", + "ruff>0.1", ] detached = true @@ -113,13 +112,12 @@ all = [ "style", ] fmt = [ - "black {args:.}", "ruff --fix {args:.}", + "ruff format {args:.}", "style", ] style = [ "ruff {args:.}", - "black --check --diff {args:.}", ] [tool.black]