From ddd4c6f1e222263f96655a25e95fe9c0f206b9f9 Mon Sep 17 00:00:00 2001 From: John Kurkowski Date: Sat, 15 Jun 2024 12:58:36 -0700 Subject: [PATCH] Switch from Black to Ruff One fewer tool. --- README.md | 2 +- pyproject.toml | 3 +-- tox.ini | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c00e29fd..c2f9533f 100644 --- a/README.md +++ b/README.md @@ -269,5 +269,5 @@ tox -e py311 Automatically format all code: ```zsh -black . +ruff format . ``` diff --git a/pyproject.toml b/pyproject.toml index 34381404..acd19816 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,6 @@ release = [ "twine", ] testing = [ - "black", "mypy", "pytest", "pytest-gitignore", @@ -105,7 +104,7 @@ select = [ "W", ] ignore = [ - "E501", # line too long; if Black does its job, not worried about the rare long line + "E501", # line too long; if formatter does its job, not worried about the rare long line ] [tool.ruff.lint.pydocstyle] diff --git a/tox.ini b/tox.ini index 6552621f..8c015542 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ extras = testing [testenv:codestyle] basepython = python3.8 commands = - black --check {posargs:.} + ruff format --check {posargs:.} extras = testing [testenv:lint]