| name: Lint |
| |
| on: |
| # Trigger the workflow on push, |
| # but only for the master branch |
| push: |
| branches: |
| - master |
| |
| permissions: |
| checks: write |
| contents: write |
| |
| jobs: |
| run-linters: |
| name: Run linters |
| runs-on: ubuntu-latest |
| |
| steps: |
| - name: Check out Git repository |
| uses: actions/checkout@v4 |
| |
| - name: Set up Python |
| uses: actions/setup-python@v5 |
| with: |
| python-version: 3.12 |
| |
| - name: Install Python dependencies |
| run: pip install black flake8 |
| |
| - name: Run linters |
| uses: wearerequired/lint-action@v2 |
| with: |
| github_token: ${{ secrets.GITHUB_TOKEN }} |
| auto_fix: true |
| black: true |
| black_auto_fix: true |
| commit_message: "fix: Fix code style issues with Black" |
| git_name: "Bust" |
| git_email: "bust.dev@outlook.com" |