Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure first lines remain intact with AddMissingHeaderRule #143

Merged
merged 1 commit into from
Oct 3, 2020

Conversation

thatch
Copy link
Contributor

@thatch thatch commented Oct 3, 2020

Summary

Python files commonly start with something like #!/usr/bin/env python and this is only effective if on the very first line of the file. There may be other directive comments like # pyre-strict that need to exist near the top as well; this does not yet handle that or allow configuration.

Test Plan

Added a new test, failing on master.

@thatch thatch requested a review from jimmylai October 3, 2020 17:10
@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 Oct 3, 2020
@thatch thatch force-pushed the header-preserve-shebang-line branch from 17f609a to 99c9596 Compare October 3, 2020 17:16
Copy link
Contributor

@jimmylai jimmylai left a comment

Choose a reason for hiding this comment

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

Makes sense.
Thanks for contributing!

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants