Skip to content

Commit

Permalink
make this branch testable and follow code conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Jul 7, 2017
1 parent bbb63f3 commit af0a65a
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ dist/
*.egg-info/
.tox/
!.gitattributes
/reports/
38 changes: 38 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
[bdist_wheel]
universal=1

[build_sphinx]
source-dir = docs/source
build-dir = build/docs
all_files = 1

[upload_sphinx]
upload-dir = build/docs/html

[check-manifest]
ignore =
*.cfg
.coveragerc
.editorconfig
.gitattributes
bootstrap-buildout.py

[isort]
# for details see
# http://docs.plone.org/develop/styleguide/python.html#grouping-and-sorting
force_alphabetical_sort = True
force_single_line = True
lines_after_imports = 2
line_length = 200
not_skip = __init__.py

[flake8]
exclude =
bootstrap-buildout.py,
setup.py

ignore =
N801,
N802,
N803,
N805,
N806,
N812,
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = '0.3.8.dev0'
version = '0.4.0.dev0'
__version__ = version

TESTS_REQUIRE = [
Expand All @@ -20,6 +20,7 @@
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down
63 changes: 62 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,71 @@
[tox]
envlist =
py27, pypy, py34, py35
py27,
py34,
py35,
py36,
pypy,
isort,
flake8,


[testenv]
deps =
zope.testrunner
.[test]

commands =
zope-testrunner --test-path=src {posargs:-pvc}

[testenv:isort]
skip_install = true

deps =
isort

commands =
isort --check-only --recursive {toxinidir}/src {posargs}

[testenv:isort-apply]
skip_install = true

deps =
isort

commands =
isort --apply --recursive {toxinidir}/src {posargs}

[testenv:flake8]
skip_install = true

deps =
flake8
flake8-html
flake8-coding
flake8-debugger
flake8-deprecated
flake8-isort
flake8-pep3101
flake8-plone-hasattr
flake8-polyfill
flake8-print
flake8-quotes
flake8-string-format
flake8-todo

commands =
mkdir -p {toxinidir}/reports/flake8
- flake8 --format=html --htmldir={toxinidir}/reports/flake8 --doctests src tests setup.py {posargs}
flake8 --doctests src tests setup.py {posargs}

whitelist_externals =
mkdir

[testenv:release]
skip_install = true

deps =
zest.releaser[recommended]

commands =
fullrelease --no-input -v

0 comments on commit af0a65a

Please sign in to comment.