From 4f29cbb27fcf7830619d59e0f97e5388d98ae6a3 Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:41:47 -0600 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20Replace=20black,=20pydocst?= =?UTF-8?q?yle,=20flake8,=20and=20bandit=20with=20ruff=20in=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 49 ++++------------------------------------ 1 file changed, 5 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55676ac04..d3dc94932 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: PLUGIN_NAME: "nautobot-app-ssot" jobs: - black: + ruff: runs-on: "ubuntu-22.04" env: INVOKE_NAUTOBOT_SSOT_LOCAL: "True" @@ -25,41 +25,8 @@ jobs: uses: "actions/checkout@v4" - name: "Setup environment" uses: "networktocode/gh-action-setup-poetry-environment@v4" - - name: "Linting: black" - run: "poetry run invoke black" - bandit: - runs-on: "ubuntu-22.04" - env: - INVOKE_NAUTOBOT_SSOT_LOCAL: "True" - steps: - - name: "Check out repository code" - uses: "actions/checkout@v4" - - name: "Setup environment" - uses: "networktocode/gh-action-setup-poetry-environment@v4" - - name: "Linting: bandit" - run: "poetry run invoke bandit" - pydocstyle: - runs-on: "ubuntu-22.04" - env: - INVOKE_NAUTOBOT_SSOT_LOCAL: "True" - steps: - - name: "Check out repository code" - uses: "actions/checkout@v4" - - name: "Setup environment" - uses: "networktocode/gh-action-setup-poetry-environment@v4" - - name: "Linting: pydocstyle" - run: "poetry run invoke pydocstyle" - flake8: - runs-on: "ubuntu-22.04" - env: - INVOKE_NAUTOBOT_SSOT_LOCAL: "True" - steps: - - name: "Check out repository code" - uses: "actions/checkout@v4" - - name: "Setup environment" - uses: "networktocode/gh-action-setup-poetry-environment@v4" - - name: "Linting: flake8" - run: "poetry run invoke flake8" + - name: "Linting: ruff" + run: "poetry run invoke ruff" poetry: runs-on: "ubuntu-22.04" env: @@ -84,12 +51,9 @@ jobs: run: "poetry run invoke yamllint" pylint: needs: - - "bandit" - - "pydocstyle" - - "flake8" - "poetry" - "yamllint" - - "black" + - "ruff" runs-on: "ubuntu-22.04" strategy: fail-fast: true @@ -127,12 +91,9 @@ jobs: run: "poetry run invoke pylint" check-migrations: needs: - - "bandit" - - "pydocstyle" - - "flake8" - "poetry" - "yamllint" - - "black" + - "ruff" runs-on: "ubuntu-22.04" strategy: fail-fast: true