Skip to content

CI framework bug: Black formatting requires a local copy, unavailable in web-based PR submission #21169

Closed

Description

@lobpcg

Describe the bug

Web-based created PR is failing the black linting job with the cryptic error: "Bash exited with code '1'"

If there is no way around it, this looks like a bug in CI framework - breaking the ability of purely web-based PR submission and maintenance, which was available prior to requiring this black formatting check. Black appears to be the only check that requires a local copy of the PR, or at least of the files affected, and a local installation of software, black.

Steps/Code to Reproduce

Edit any *.py file in the mail repo in a web browser, follow the suggested steps to create a branch, and submit a PR.
The PR will fail the black linting job. There is no way around it in purely web-based workflow.

Expected Results

The purely web-based workflow should function without requiring any local copies or *.py and local software installations.

Actual Results

PR is failing the black linting job with the cryptic error: "Bash exited with code '1'"

Versions

The most current today.

Activity

  1. glemaitre commented on Sep 28, 2021

    @glemaitre
    Member

    It is not a bug. I think that the current process is in line with our contributing guide: https://scikit-learn.org/stable/developers/contributing.html#contributing-code

    IMO, I don't think that it is a good practice to rely on the GitHub web-based interface to make a contribution.

  2. adrinjalali commented on Oct 12, 2021

    @adrinjalali
    Member

    I agree we don't really support web based PRs. Happy to fix the issue with black if somebody comes up with a solution, but I don't think we need to keep this as an open issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions