add black testenvs, CI stage, and contributing requirement

development
mattsb42-aws 2018-06-05 16:15:56 -07:00
parent f2252f1826
commit 05830a966c
3 changed files with 13 additions and 3 deletions

View File

@ -36,5 +36,7 @@ matrix:
env: TOXENV=flake8-tests
- python: 3.6
env: TOXENV=pylint-tests
- python: 3.6
env: TOXENV=black-check
install: pip install tox
script: tox

View File

@ -26,6 +26,7 @@ Contributions via pull requests are much appreciated. Before sending us a pull r
1. You are working against the latest source on the *master* branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
4. If you modified any source code, run `tox -e blacken` and commit any changes black makes.
To send us a pull request, please:

13
tox.ini
View File

@ -93,17 +93,24 @@ commands =
--ignore F811,D103 \
test/
[testenv:black-check]
basepython = {[testenv:flake8]basepython}
[testenv:blacken]
basepython = python3
deps =
black
commands =
black --line-length 120 --diff \
black --line-length 120 \
src/base64io/ \
setup.py \
doc/conf.py \
test/
[testenv:black-check]
basepython = {[testenv:blacken]basepython}
deps =
{[testenv:blacken]deps}
commands =
{[testenv:blacken]commands} --diff
[testenv:pylint]
basepython = {[testenv:default-python]basepython}
deps =