Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Making license headers in Python files more uniform#2370

Merged
dhermes merged 2 commits into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:license-header-checkdhermes/google-cloud-python:license-header-checkCopy head branch name to clipboard
Sep 22, 2016
Merged

Making license headers in Python files more uniform#2370
dhermes merged 2 commits into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:license-header-checkdhermes/google-cloud-python:license-header-checkCopy head branch name to clipboard

Conversation

@dhermes

@dhermes dhermes commented Sep 20, 2016

Copy link
Copy Markdown
Contributor
  1. Originally started as a check for which files didn't have license headers (due to Moving core into designated package. #2367 (comment))
  2. Used a script to verify: https://gist.github.com/dhermes/17177b603e2b22902334947d9871529c
  3. Maybe we should incorporate the script into our build rule to prevent files checked in with bad or missing license headers?
  4. Should the script be extended to incorporate more than just Python files?

Done via:

$ git grep -l '# Copyright 2016 Google Inc. All Rights Reserved.' | \
> xargs sed -i 's/All Rights Reserved/All rights reserved/g'
Also adding license headers where they are missing.

Also had to tweak the max lines allowed in a test module
due to added license header.

Used: https://gist.github.com/dhermes/17177b603e2b22902334947d9871529c
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 20, 2016
@daspecster

Copy link
Copy Markdown
Contributor

I'm 👍 for point number 3. I added #2371 to discuss.
I think for number 4, that might be up to legal?

These updates LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.