mirror of
https://github.com/ihmily/StreamCap.git
synced 2026-07-01 02:54:18 +08:00
Merge branch 'main' of https://github.com/ihmily/StreamCap
This commit is contained in:
10
.github/workflows/python-lint.yml
vendored
10
.github/workflows/python-lint.yml
vendored
@@ -4,10 +4,16 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'app/**'
|
||||
- '.ruff.toml'
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
paths:
|
||||
- 'app/**'
|
||||
- '.ruff.toml'
|
||||
|
||||
jobs:
|
||||
lint-python:
|
||||
@@ -36,5 +42,5 @@ jobs:
|
||||
pip install ruff
|
||||
|
||||
- name: Run ruff lint check
|
||||
run: ruff check . --config .ruff.toml --exclude="*.md,*.txt"
|
||||
working-directory: .
|
||||
run: ruff check main.py app --config .ruff.toml
|
||||
working-directory: .
|
||||
|
||||
Reference in New Issue
Block a user