Skip to content

Merge pull request #19 from xFuture603/add_gitlab_remove_directly_add… #27

Merge pull request #19 from xFuture603/add_gitlab_remove_directly_add…

Merge pull request #19 from xFuture603/add_gitlab_remove_directly_add… #27

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: "**/*.py"
- name: Black formatter
if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
uses: psf/[email protected]
with:
src: ${{ steps.changed-files.outputs.all_changed_files }}
- name: Ruff linter
if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
uses: chartboost/ruff-action@v1
with:
src: ${{ steps.changed-files.outputs.all_changed_files }}