Skip to content

GitHub Actions workflow fails on PRs with no Python files #34

Description

@tripti-gupta700

Label: bug, level: advanced

Description:
The PR validation workflow errors out when a contributor submits
a documentation-only PR (no .py files). pyflakes throws an error
on empty input instead of skipping gracefully.

Task:
Add a conditional check — only run pyflakes if .py files exist in the PR diff.

File: .github/workflows/pr-check.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    AdvancedbugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions