From 81cda4eb32be3727f2945cde9d817b7319ff93b5 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 24 May 2024 13:39:37 -0400 Subject: [PATCH] actions: add ruff checks --- .github/workflows/pylint.yml | 23 ----------------------- .github/workflows/ruff.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/pylint.yml create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 6e21c90..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..b268138 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,8 @@ +name: Ruff +on: [push, pull_request] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chartboost/ruff-action@v1