Skip to content

pre-push hook can check Python code #147088

@Shunpoco

Description

@Shunpoco

Summary

Context: https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Run.20python.20format.20in.20pre-push.20hook/with/541794588

Currently pre-push hook kicks ./x test tidy, it means that the hook checks only Rust codes, but not Python (and other) codes.

Since we have auto prefix which skips extra check if there is no change, pre-push hook can call use it without unnecessary setup (e.g., create venv even if user doesn't touch Python code at all).

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions