Skip to content

Add tox.ini and configure coverage and flake runs #80

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

Merged
merged 5 commits into from
Oct 2, 2018

Conversation

icywang86rui
Copy link
Contributor

  • Add more unit tests
  • Configure unit tests to run with both py2 and py3
  • Add flake checks
  • Fix broken integ tests

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

* Add more unit tests
* Configure unit tests to run with both py2 and py3
* Add flake checks
* Fix broken integ tests
tox.ini Outdated
3.6: py36, flake8

[flake8]
max-line-length = 120
Copy link
Contributor

Choose a reason for hiding this comment

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

we may or may not be moving to 100 - I'll chat with you offline

python =
3.6: py36, flake8

[flake8]
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also include stuff for the import statements? e.g. https://github.com/aws/sagemaker-containers/blob/master/.flake8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will do that.

# Can be used to specify which tests to run, e.g.: tox -- -s
commands =
coverage run -m pytest {posargs}
{env:IGNORE_COVERAGE:} coverage report --fail-under=90 --include *sagemaker_tensorflow_container* --omit */tensorflow/tensorflow_serving/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@laurenyu laurenyu left a comment

Choose a reason for hiding this comment

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

don't forget a newline at the end of the file for the first 3...is there a flake configuration for that too?

@icywang86rui
Copy link
Contributor Author

I think flake8 ignores the hidden files. But I can't find the documentation. Will add the newlines.

@icywang86rui icywang86rui merged commit 3763697 into aws:script-mode Oct 2, 2018
@icywang86rui icywang86rui deleted the script-mode-new branch October 2, 2018 16:20
laurenyu added a commit to aws/sagemaker-mxnet-training-toolkit that referenced this pull request Oct 9, 2018
Elizaaaaa pushed a commit to Elizaaaaa/sagemaker-tensorflow-container that referenced this pull request Nov 4, 2019
* Add tox.ini and configure coverage and flake runs

* Add more unit tests
* Configure unit tests to run with both py2 and py3
* Add flake checks
* Fix broken integ tests

* Add import style check

* Add .flake8

* Add source module in coverage command

* Add newlines
Elizaaaaa pushed a commit to Elizaaaaa/sagemaker-tensorflow-container that referenced this pull request Nov 4, 2019
* Add tox.ini and configure coverage and flake runs

* Add more unit tests
* Configure unit tests to run with both py2 and py3
* Add flake checks
* Fix broken integ tests

* Add import style check

* Add .flake8

* Add source module in coverage command

* Add newlines
Elizaaaaa pushed a commit to Elizaaaaa/sagemaker-tensorflow-container that referenced this pull request Nov 4, 2019
* Add tox.ini and configure coverage and flake runs

* Add more unit tests
* Configure unit tests to run with both py2 and py3
* Add flake checks
* Fix broken integ tests

* Add import style check

* Add .flake8

* Add source module in coverage command

* Add newlines
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.

3 participants