Skip to content

Commit

Permalink
Run black linter and enforce going forward
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf committed Oct 31, 2019
1 parent 54c8a7d commit c820395
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -37,7 +37,8 @@ install:
python wait_for.py
fi
script:
- make test
- make test-only
- if [[ $TRAVIS_PYTHON_VERSION == "3.7" ]]; then make lint; fi
after_success:
- coveralls
before_deploy:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -14,12 +14,16 @@ init:

lint:
flake8 moto
black --check moto/ tests/

test: lint
test-only:
rm -f .coverage
rm -rf cover
@nosetests -sv --with-coverage --cover-html ./tests/ $(TEST_EXCLUDE)


test: lint test-only

test_server:
@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -7,9 +7,9 @@
[![Docs](https://readthedocs.org/projects/pip/badge/?version=stable)](http://docs.getmoto.org)
![PyPI](https://img.shields.io/pypi/v/moto.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/moto.svg)
![PyPI - Downloads](https://img.shields.io/pypi/dw/moto.svg)
![PyPI - Downloads](https://img.shields.io/pypi/dw/moto.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# In a nutshell
## In a nutshell

Moto is a library that allows your tests to easily mock out AWS Services.

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
@@ -1,6 +1,7 @@
-r requirements.txt
mock
nose
black; python_version >= '3.6'
sure==1.4.11
coverage
flake8==3.7.8
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -15,5 +15,5 @@ commands =
nosetests {posargs}

[flake8]
ignore = E128,E501,W504,W605
ignore = W503,W605,E128,E501,E203,E266,E501,E231
exclude = moto/packages,dist

0 comments on commit c820395

Please sign in to comment.