Skip to content

This template makes a GitHub Action that expects a .pre-commit-config.yaml, but doesn't make one #46

@jpivarski

Description

@jpivarski

Describe the bug

In a repo created by the template, the PR branch Action attempts to run pre-commit, but it immediately encounters the error,

=====> .pre-commit-config.yaml is not a file

(because there is no such file). Either pre-commit should be automatically added to Actions and configured, or neither.

It's also interesting that I'm seeing this in my first PR branch, but not any direct commits to main.

(It's hard to discover these issues without a guinea pig!)

Reproduce the bug

See above.

List your environment

Not relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions