Skip to content

[ROCm] [UX] Add the default logic of ROCm path #143

[ROCm] [UX] Add the default logic of ROCm path

[ROCm] [UX] Add the default logic of ROCm path #143

Workflow file for this run

name: lint
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
name: Lint and Format Check, Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.13]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black flake8 isort mypy
- name: Check formatting with black
run: black --check .
- name: Check imports with isort
run: isort --check-only .
- name: Lint with flake8
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Type check with mypy
run: mypy . --ignore-missing-imports