diff --git a/CHANGELOG.md b/CHANGELOG.md index 263424e9..708a49c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## In development +- Use ruff instead of black for formatting (#536). - Drop support for Python 3.7 in test matrix (#533). - Fix support for Django 4.2 in test matrix (#533). - Pass "horizontal_field_offset_class" to child renderers (#391, #521). diff --git a/README.md b/README.md index f4ab05f9..5ac966e2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![CI](https://github.com/zostera/django-bootstrap5/workflows/CI/badge.svg?branch=main)](https://github.com/zostera/django-bootstrap5/actions?workflow=CI) [![Coverage Status](https://coveralls.io/repos/github/zostera/django-bootstrap5/badge.svg?branch=main)](https://coveralls.io/github/zostera/django-bootstrap5?branch=main) [![Latest PyPI version](https://img.shields.io/pypi/v/django-bootstrap5.svg)](https://pypi.python.org/pypi/django-bootstrap5) -[![Any color you like](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) Bootstrap 5 for Django. diff --git a/pyproject.toml b/pyproject.toml index ac5b6673..9fb69119 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,8 +116,7 @@ clean = "rm -rf docs/_build" [tool.hatch.envs.lint] dependencies = [ - "black>=23.3.0", - "ruff>=0.0.270", + "ruff>0.1", ] detached = true @@ -126,19 +125,14 @@ all = [ "style", ] fmt = [ - "black {args:.}", "ruff --fix {args:.}", + "ruff format {args:.}", "style", ] style = [ "ruff {args:.}", - "black --check --diff {args:.}", ] -[tool.black] -line-length = 120 -target_version = ["py37", "py38", "py39", "py310", "py311"] - [tool.ruff] fix = false fixable = [