File: Ruff_python_formater.yml

package info (click to toggle)
jbig2enc 0.30-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,612 kB
  • sloc: cpp: 2,677; python: 176; makefile: 62; sh: 26
file content (22 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Ruff_python_formater

on: [ push, pull_request ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Python
        uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install ruff isort
      # Update output format to enable automatic inline annotations.
      - name: Run Ruff
        run: |
          ruff check --output-format=github *.py
          isort .