diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index ae3f48c..9fe2faf 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -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: . \ No newline at end of file + run: ruff check main.py app --config .ruff.toml + working-directory: .