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

Add some pre-commit check items. #8

Merged
merged 4 commits into from
Apr 9, 2018
Merged

Conversation

pkuyym
Copy link
Collaborator

@pkuyym pkuyym commented Apr 7, 2018

Resolves #7

@pkuyym
Copy link
Collaborator Author

pkuyym commented Apr 7, 2018

@wangkuiyi Please help to authorize the repo for CI.

Copy link

@kuke kuke left a comment

Choose a reason for hiding this comment

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

Can remove clang-format related contents. We'd better not use cpp in this repo to avoid compiling, and it is not necessary either

import platform

COPYRIGHT = '''
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Copy link

Choose a reason for hiding this comment

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

2018

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kuke Seems cpp code is necessary, @varunarora please help to confirm it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kuke 2016 is only a place-holder, actual year is generated dynamically:

Line 39

process = subprocess.Popen(["date", "+%Y"], stdout=subprocess.PIPE)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

clang-format removed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great - yes this is exactly it needs to be dynamically replaced

Copy link

@kuke kuke left a comment

Choose a reason for hiding this comment

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

Approve this PR first to test CI.

@pkuyym pkuyym merged commit b038bdc into PaddlePaddle:master Apr 9, 2018
@pkuyym
Copy link
Collaborator Author

pkuyym commented Apr 9, 2018

I merged this PR to test CI. If necessary, we can revert it.

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

Successfully merging this pull request may close these issues.

None yet

3 participants