From 07f47129373a85648873979de0e7ca4bba5d07b5 Mon Sep 17 00:00:00 2001 From: Stadnik Andrii Date: Thu, 18 May 2023 12:50:52 +0300 Subject: [PATCH] Update GH action --- .github/workflows/python-publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 809e1e2..e982f06 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -25,9 +25,17 @@ jobs: - name: Install dependencies run: | pip install --upgrade pip - pip install flake8 pytest build + pip install ruff pytest build - name: Build run: python -m build + + - name: Lint with ruff + run: | + # stop the build if there are Python syntax errors or undefined names + ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 . + # default set of ruff rules with GitHub Annotations + ruff --format=github --target-version=py311 . + # - name: Lint with flake8 # run: | # # stop the build if there are Python syntax errors or undefined names