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 pytype type checking and annotations #138

Open
cweill opened this issue Nov 5, 2019 · 0 comments
Open

Add pytype type checking and annotations #138

cweill opened this issue Nov 5, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cweill
Copy link
Contributor

cweill commented Nov 5, 2019

https://github.com/google/pytype is a static analysis tool for detecting many issues at "compile" time. Several other TensorFlow projects use pytype, and we have seen some benefits on our other projects. So we should begin adding these type checks to the adanet codebase.

@cweill cweill added the enhancement New feature or request label Nov 5, 2019
@cweill cweill self-assigned this Nov 5, 2019
@cweill cweill pinned this issue Nov 5, 2019
cweill added a commit that referenced this issue Nov 6, 2019
Requires some moving of direct tensorflow imports for BUILD rules.

PiperOrigin-RevId: 278864504
cweill added a commit that referenced this issue Nov 8, 2019
 * core
 * distributed
 * examples

Also add `pytype` and `typing` packages to requirements.txt.

Refs #138.

PiperOrigin-RevId: 279372357
cweill added a commit that referenced this issue Nov 20, 2019
Refs #138.
Copybara import of the project:

  - 758c6ca Fix pytype complaints. by Charles Weill <weill@google.com>
  - 2e12e1a Update gitignore by Charles Weill <weill@google.com>
  - 6e0fffb Merge 2e12e1a into 21994... by Charles Weill <c@weill.io>

PiperOrigin-RevId: 281595933
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant