Skip to content

Conversation

d4l3k
Copy link
Member

@d4l3k d4l3k commented May 24, 2021

There was a bug in the lint.sh script such that the linters weren't actually being run.

set -e <cmd> just silently ignores the <cmd> part. Instead we should use set -e at the top of the file and call the linters normally.

It also adds GITHUB_TOKEN support so the linter script can actually checkout upstream to do a diff.

Test plan:

CI and

modify random .py file with import and whitespace changes

scripts/lint.sh

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 24, 2021
@d4l3k d4l3k force-pushed the lint branch 9 times, most recently from 41e0b5d to db17f0b Compare May 24, 2021 22:41
@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@d4l3k has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@d4l3k has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@d4l3k merged this pull request in d5620fa.

@d4l3k d4l3k deleted the lint branch May 24, 2021 23:05
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 Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants