feat: Execute configuration commands line by line in the Netmiko driv… #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ruff | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| jobs: | |
| lint: | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Ruff | |
| run: pip install ruff | |
| - name: Format code | |
| run: ruff --config pyproject.toml format . | |
| - name: Fix lint issues | |
| run: ruff --config pyproject.toml check --fix --exit-zero . | |
| - name: Ensure no remaining lint issues | |
| run: ruff --config pyproject.toml check . |