From e043a1e6bb63610e33edff3efbf60cebb10b2ca3 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Wed, 25 Oct 2023 10:30:28 -0400 Subject: [PATCH] Update CI to use `ruff format` --- .github/workflows/lint.yaml | 6 +++--- pyproject.toml | 14 -------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 742b31db7..ddf984c56 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -41,7 +41,7 @@ jobs: # run: python3 -m ruff tests/ run-formatter: - name: Format + name: Ruff Format runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -60,5 +60,5 @@ jobs: - name: Install the `sdr` package run: python3 -m pip install . - - name: Format with black - run: python3 -m black . --check + - name: Format with ruff + run: python3 -m ruff format --check . diff --git a/pyproject.toml b/pyproject.toml index a7bf36308..15fc2d828 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,20 +92,6 @@ ignore = ["E501", "E713", "E714"] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "F403"] -[tool.black] -line-length = 120 -exclude = ''' -/( - build -)/ - | src/sdr/_version.py -''' -# NOTE: You must use single-quoted strings in TOML for regular expressions. It's the equivalent of r-strings in Python. -# For some reason, this exclude line doesn't work when on a single line. - -[tool.isort] -profile = "black" - [tool.pytest.ini_options] minversion = "6.2" addopts = "-s --showlocals"