Skip to content

Commit

Permalink
ci: 👷 Replace black, pydocstyle, flake8, and bandit with ruff in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrew82 committed Jan 4, 2024
1 parent 72a3647 commit 4f29cbb
Showing 1 changed file with 5 additions and 44 deletions.
49 changes: 5 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
PLUGIN_NAME: "nautobot-app-ssot"

jobs:
black:
ruff:
runs-on: "ubuntu-22.04"
env:
INVOKE_NAUTOBOT_SSOT_LOCAL: "True"
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4f29cbb

Please sign in to comment.