From 68903eec1bc55c2d390fc1591280ebb8f6c3ffe3 Mon Sep 17 00:00:00 2001 From: Teque5 Date: Tue, 2 Jun 2026 08:49:43 -0700 Subject: [PATCH 1/2] ruff for linting & formatting * remove defunct imports * change developer docs * ruff format & ruff check --fix --- docs/source/conf.py | 4 ++-- docs/source/developers.rst | 5 ++--- pyproject.toml | 5 ++++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 2c1c9f4..6e8c221 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -67,5 +67,5 @@ "specversion", ] frozen_locals = dict(locals()) -rst_epilog = '\n'.join(map(lambda x: f".. |{x}| replace:: {frozen_locals[x]}", variables_to_export)) -del frozen_locals \ No newline at end of file +rst_epilog = "\n".join(map(lambda x: f".. |{x}| replace:: {frozen_locals[x]}", variables_to_export)) +del frozen_locals diff --git a/docs/source/developers.rst b/docs/source/developers.rst index 18d91e8..e154684 100644 --- a/docs/source/developers.rst +++ b/docs/source/developers.rst @@ -42,14 +42,13 @@ To lint the entire project and get suggested changes: .. code-block:: console - $ pylint sigmf tests + $ ruff check To autoformat the entire project according to our coding standard: .. code-block:: console - $ black sigmf tests # autoformat entire project - $ isort sigmf tests # format imports for entire project + $ ruff format ---- Docs diff --git a/pyproject.toml b/pyproject.toml index 73daf53..bc281f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ sigmf_convert = "sigmf.convert.__main__:main" [project.optional-dependencies] test = [ - "pylint", + "ruff", "pytest", "pytest-cov", "hypothesis", # next-gen testing framework @@ -99,6 +99,9 @@ line-length = 120 [tool.isort] profile = "black" +[tool.ruff] +line-length = 120 + [tool.tox] legacy_tox_ini = ''' [tox] From ffb0219fb3f8a56520b6718f567aa96ed7d115d1 Mon Sep 17 00:00:00 2001 From: Teque5 Date: Tue, 2 Jun 2026 09:13:33 -0700 Subject: [PATCH 2/2] upgrade action versions --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ede6f0e..2d71c33 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,9 +14,9 @@ jobs: matrix: python-version: ["3.7", "3.9", "3.11", "3.13", "3.14"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies