From 326f4cf7c8f2138cc0b204fdb0f4a23cc42bc551 Mon Sep 17 00:00:00 2001 From: Patrick Marlow Date: Wed, 9 Oct 2024 22:46:25 -0400 Subject: [PATCH] fix: updates to ruff formatter --- Makefile | 2 +- pyproject.toml | 28 ++++------------------------ 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index c5399954..baff2590 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ autofix-all: # use it like this: # make fix f=tools/validation_util.py fix: - black --line-length=80 ${f} + ruff format ${f} build: python3 -m build diff --git a/pyproject.toml b/pyproject.toml index 036d2899..3a08d453 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,27 +1,3 @@ -[tool.black] -line-length = 88 -target-version = ['py36', 'py37', 'py38'] -include = '\.pyi?$' -exclude = ''' -/( - \.eggs - | \.git - | \.hg - | \.mypy_cache - | \.tox - | \.venv - | _build - | buck-out - | build - | dist - # The following are specific to Black, you probably don't want those. - | blib2to3 - | tests/data - | profiling -)/ -''' - -# Build system information below. [build-system] requires = ["setuptools>=42", "setuptools-scm", "wheel"] build-backend = "setuptools.build_meta" @@ -29,3 +5,7 @@ build-backend = "setuptools.build_meta" [tool.ruff] line-length = 80 extend-exclude = ["*.ipynb"] + +[tool.ruff.format] +quote-style = "double" +indent-style = "tab"