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

Ignore end of line # copybara: directives. #886

Merged
merged 2 commits into from
Dec 21, 2020

Conversation

gpshead
Copy link
Contributor

@gpshead gpshead commented Dec 18, 2020

pylint and pytype end of line comments adjusting their behavior are
already handled specially. This does the same for copybara.

I don't like that this is turning into a chain of property calls,
refactoring this into a single question of "is this end of line comment
special" would be better if we gain any more of these.

A usual internal comment this will ignore is # copybara:strip placed
on a long import line for something being excluded by copybara when
pushing internally maintained code to upstream to keep internal
google-isms from escaping.

pylint and pytype end of line comments adjusting their behavior are
already handled specially.  This does the same for copybara.

I don't like that this is turning into a chain of property calls,
refactoring this into a single question of "is this end of line comment
special" would be better if we gain any more of these.

A usual internal comment this will ignore is `# copybara:strip` placed
on a long import line for something being excluded by copybara when
pushing internally maintained code to upstream to keep internal
google-isms from escaping.
@google-cla google-cla bot added the cla: yes label Dec 18, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 94.496% when pulling 560c942 on gpshead:ignore-eol-copybara-comments into bbfebc2 on google:master.

@coveralls
Copy link

coveralls commented Dec 18, 2020

Coverage Status

Coverage increased (+0.01%) to 94.579% when pulling 5ab9475 on gpshead:ignore-eol-copybara-comments into bbfebc2 on google:master.

@bwendling
Copy link
Member

Thanks. Could you add an entry to CHANGELOG?

@gpshead
Copy link
Contributor Author

gpshead commented Dec 20, 2020

Could you add an entry to CHANGELOG?

Yep, done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants