From 81a3f5d5736ab6f412c7d799d7981e4ea6f610a2 Mon Sep 17 00:00:00 2001 From: riscy Date: Sat, 3 Aug 2024 20:34:19 -0700 Subject: [PATCH] move from `black --check` to `ruff format --check` --- .github/workflows/test.yml | 2 +- Makefile | 2 +- pyproject.toml | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 695122f..335b904 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: sudo apt-get install emacs emacs --version python -m pip install --upgrade pip - pip install . mypy pytest black + pip install . mypy pytest ruff - name: Test run: make test-melpazoid diff --git a/Makefile b/Makefile index 9fc6d10..ae413ec 100644 --- a/Makefile +++ b/Makefile @@ -25,4 +25,4 @@ image: test-melpazoid: mypy --strict --non-interactive --install-types melpazoid pytest --doctest-modules --durations=5 - black -S --check . + ruff format --check . diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dc96684 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "melpazoid" +version = "0.0" +requires-python = ">=3.10" + +[tool.ruff.format] +quote-style = "preserve"