Skip to content

Conversation

@NicolasHug
Copy link
Contributor

@NicolasHug NicolasHug commented Nov 5, 2024

Our lint job is broken on main: see latest commit with a failing pre-commit job https://github.com/pytorch/torchcodec/actions/runs/11672509149/job/32501275316

It's failing, but green. This is because we have deactivated the ability for the job to properly fail

This PR:

  • let the pre-commit check fail when needed: see that it fails, as expected, in 736bdc4 (#333)
  • fixes the code formatting accordingly.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 5, 2024
Comment on lines -39 to -40
# Continue on error to display the formatting diff in case lint fails.
continue-on-error: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what prevented the CI to be red when the pre-commit job failed.

We'll have to find a better way to display the formatting diff.

@NicolasHug NicolasHug merged commit ab79e67 into meta-pytorch:main Nov 5, 2024
37 of 40 checks passed
@NicolasHug NicolasHug deleted the lintttt branch November 5, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants