Skip to content

Conversation

@lgeiger
Copy link
Member

@lgeiger lgeiger commented May 28, 2021

This PR add PyType linting to CI to verify our type signatures. We currently ignore some errors since TF and our pybind modules do not provide type stubs and might not exists during linting.

@lgeiger lgeiger added the internal-improvement Internal Improvements and Maintenance label May 28, 2021
@lgeiger lgeiger requested a review from a team May 28, 2021 11:21
- name: Install Lint Dependencies
run: |
pip install pyflakes==2.3.0 black==20.8b1 --no-cache-dir
pip install pyflakes==2.3.0 black==20.8b1 pytype --no-cache-dir
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be good to pin the version of pytype? Otherwise a new version might suddenly break some unrelated PR (because of a bug or a new feature).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, sorry I forgot to commit that change.

How do you feel about moving these to a test_requirements.txt file, so we can keep them up to date with dependabot?
I'm happy to do this in a future PR.

@lgeiger lgeiger merged commit d63955f into main May 28, 2021
@lgeiger lgeiger deleted the pytype branch May 28, 2021 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal-improvement Internal Improvements and Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants