Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

Commit 23a43a4

Browse files
committed
Retire black in favor of ruff format
1 parent d1729c5 commit 23a43a4

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ clean: docs-clean dist-clean
5151

5252
format:
5353
$(PYTHON) -m ruff check src examples --fix
54-
$(PYTHON) -m black src examples
54+
$(PYTHON) -m ruff format src examples
5555

5656
format-check: lint
57-
$(PYTHON) -m black --check src examples
57+
$(PYTHON) -m ruff format --check src examples
5858

5959
lint:
6060
$(PYTHON) -m ruff check src examples

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ where = ["src"]
5252
dev = [
5353
"pytest>=8.0",
5454
"httpx>=0.27",
55-
"black",
5655
"ruff>=0.16,<0.17",
5756
"pyright",
5857
"mypy"
@@ -90,10 +89,9 @@ line-length = 120
9089
# BLE001: broad excepts deliberately isolate plugin/loader/handler failures.
9190
ignore = ["TRY002", "TRY004", "BLE001"]
9291

93-
[tool.black]
94-
target-version = ["py312"]
95-
line-length = 120
96-
skip-string-normalization = true
92+
[tool.ruff.format]
93+
# preserve replaces black's skip-string-normalization: existing quote styles are kept.
94+
quote-style = "preserve"
9795

9896
[tool.pyright]
9997
pythonVersion = "3.12"

src/httk/optimade/engine/processing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def process(
138138
return generate_partial_data_reply(validated_request, config, query_function, schema)
139139

140140
elif endpoint in schema.all_entries:
141-
142141
response_fields = validated_request.recognized_response_fields
143142
unknown_response_fields = validated_request.unrecognized_response_fields
144143
entries = [endpoint]

0 commit comments

Comments
 (0)