-
Notifications
You must be signed in to change notification settings - Fork 710
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
Run lint (Python, Go) as a presubmit test #53
Comments
Looks like kubernetes/test-infra is getting rid of using Travis so we should probably do the same. Travis is choking try to install pylint. |
In Travis I tried installing pylint as an apt package but that pulls in an older version 1.0 versus 1.7. |
Add a python lint check Partial fix to #53 Capture stdout/stderr of the test and upload to GCS so we have a proper build log that outlives the pod lifetime. Fixes #82 * Run autopep8 on all py files. * Fix python lint issues * pylintrc was copied from kuberntes/test-infra * Disable import-error message since some py files run inside containers which will have different libraries then the machine running the lint check.
golint is the go linter. We should add it to lint.sh I ran it and there are quite a few lint issues:
|
using |
Create a binary to run pylint and python unittests. This will be used in our E2E test pipeline. Partial fix to #126 (lint results not reported in gubernator) This binary creates junit files with junit files Partial fix to #53 (run pylint as a presubmit) This provides a binary to run lint that will be incorporated into our E2E pipeline. Partial fix to #101 (run python unittests as part of pre/post submit) This PR provides a binary to run the unittests; subsequent PR will integrate it into Airflow.
* Create a binary to run python lint and unittests . * This will be used to run lint and unittests as part of the E2E pipeline. * Integrate python lint and unittests into our E2E pipeline. * Update the deployment. * Fix #126 (lint results not reported in gubernator) * Fix #53 (run pylint as a presubmit) * Fix #101 (run python unittests as part of pre/post submit) * To support this change we modify our Airflow E2E pipeline so that it will checkout the source to a directory that is on our PD and passes that directory to subsequent steps via XCom.
Prettier can handle markdown |
also FYI pipenv can enforce pep8 check |
and gradually tighten the linting rules. for now unused and golint are left out. some fixes are included in this PR. using gometaliner instead of just golint because: it covers more cases, e.g. the typo checkings. it also allows for disabling rules w.r.t regex, e.g. when you don't want to enforce all the comment rules enforced by golint * Part of #53
So I think the additional work items are
py lint checks are performed by running py scripts using prow. My preference over time would be to do everything using prow. So when we add more checks lets do it by using prow. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@johnugeorge @richardsliu is this still relevant? Did we ever setup lint checks? |
yes. it is already added |
We should run lint checks as a presubmit test.
Would be nice to do markdown as well but I'm not sure if there's a linter for markdown.
The text was updated successfully, but these errors were encountered: