name: Linting on: push: branches: [ "main" ] # Exclude specific file extensions from triggering the workflow paths-ignore: - '**/*.md' # Ignore all Markdown files anywhere in the repo - '**/*.txt' # Ignore all text files - 'docs/**/*.png' # Ignore PNGs inside the docs folder jobs: lint: runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.10' cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip pip install ruff - name: Run Ruff run: | ruff check .