From 10507aff7c06279b263c4948e7756cd054d69385 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 30 Dec 2024 06:05:49 +0100 Subject: [PATCH] GitHub Actions: Lint Python code with ruff (#310) * GitHub Actions: Lint Python code with ruff https://docs.astral.sh/ruff is an extremely fast Python linter and code formatter, written in Rust. With [over 800 linting rules](https://docs.astral.sh/ruff/rules), ruff can be used to replace [Flake8](https://pypi.org/project/flake8/) (plus dozens of plugins), [Black](https://github.com/psf/black), [isort](https://pypi.org/project/isort/), [pydocstyle](https://pypi.org/project/pydocstyle/), [pyupgrade](https://pypi.org/project/pyupgrade/), [autoflake](https://pypi.org/project/autoflake/), and more, all while executing tens or hundreds of times faster than any individual tool. * pipx run ruff check --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a30bd11..52faa16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,8 +21,10 @@ jobs: node-version: '16' - name: npm install run: npm install - - name: lint + - name: lint JavaScript run: npm run lint + - name: lint Python + run: pipx run ruff check test: name: Test Suite