Refactor "clear BGP session" logic from #2630 (#2638) #1
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 Python Linting and Formatting | |
| on: | |
| push: | |
| branches-ignore: [ devc ] | |
| paths: | |
| - '**.py' | |
| - 'ruff.toml' | |
| - '.github/workflows/ruff.yml' | |
| pull_request: | |
| paths: | |
| - '**.py' | |
| - 'ruff.toml' | |
| - '.github/workflows/ruff.yml' | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install ruff | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install ruff | |
| - name: Run ruff linter | |
| run: | | |
| ruff check --output-format=github . | |
| #- name: Run ruff formatter (check only) | |
| # run: | | |
| # ruff format --check --diff . |