Run black linter and enforce going forward
This commit is contained in:
parent
54c8a7dea1
commit
c820395dbf
5 changed files with 11 additions and 5 deletions
|
|
@ -37,7 +37,8 @@ install:
|
||||||
python wait_for.py
|
python wait_for.py
|
||||||
fi
|
fi
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test-only
|
||||||
|
- if [[ $TRAVIS_PYTHON_VERSION == "3.7" ]]; then make lint; fi
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -14,12 +14,16 @@ init:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
flake8 moto
|
flake8 moto
|
||||||
|
black --check moto/ tests/
|
||||||
|
|
||||||
test: lint
|
test-only:
|
||||||
rm -f .coverage
|
rm -f .coverage
|
||||||
rm -rf cover
|
rm -rf cover
|
||||||
@nosetests -sv --with-coverage --cover-html ./tests/ $(TEST_EXCLUDE)
|
@nosetests -sv --with-coverage --cover-html ./tests/ $(TEST_EXCLUDE)
|
||||||
|
|
||||||
|
|
||||||
|
test: lint test-only
|
||||||
|
|
||||||
test_server:
|
test_server:
|
||||||
@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/
|
@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
[](http://docs.getmoto.org)
|
[](http://docs.getmoto.org)
|
||||||

|

|
||||||

|

|
||||||

|
 [](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.
|
Moto is a library that allows your tests to easily mock out AWS Services.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
mock
|
mock
|
||||||
nose
|
nose
|
||||||
|
black; python_version >= '3.6'
|
||||||
sure==1.4.11
|
sure==1.4.11
|
||||||
coverage
|
coverage
|
||||||
flake8==3.7.8
|
flake8==3.7.8
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -15,5 +15,5 @@ commands =
|
||||||
nosetests {posargs}
|
nosetests {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E128,E501,W504,W605
|
ignore = W503,W605,E128,E501,E203,E266,E501,E231
|
||||||
exclude = moto/packages,dist
|
exclude = moto/packages,dist
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue