<commit_before># Copyright 2014 - 2015 Solinea, Inc.
#
# Licensed under the Solinea Software License Agreement (goldstone),
# Version 1.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
#     http://www.solinea.com/goldstone/LICENSE.pdf
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[tox]
envlist = pep8, pylint, py26, py27

[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
usedevelop= True
downloadcache = cache/pip
commands =
    python ./manage.py jenkins --settings=goldstone.settings.test_oak_c2

[testenv:venv]
commands = {posargs}

[testenv:pep8]
commands = pep8 --exclude=migrations goldstone

[testenv:pylint]
commands = pylint --rcfile=pylint.cfg goldstone

[testenv:checkin]
commands = {[testenv:pep8]commands}
           {[testenv:pylint]commands}
	
[testenv:cover]
commands =
    coverage run --source='./goldstone' --omit='./goldstone/settings/*,*/test*' manage.py test goldstone --settings=goldstone.settings.test_oak_c2
    coverage xml
    coverage report
    coverage html

[testenv:flake8]
builtins = _
exclude =  .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# H102 Apache 2.0 license header not found
# H4xx docstrings
# H701 empty localization string
# H702 Formatting operation should be outside of localization method call
# H803 git commit title should not end with period (disabled on purpose, see bug #1236621)
ignore = E127,E128,H102,H4,H701,H702,H803<commit_msg>added a jenkins target for tox<commit_after># Copyright 2014 - 2015 Solinea, Inc.
#
# Licensed under the Solinea Software License Agreement (goldstone),
# Version 1.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
#     http://www.solinea.com/goldstone/LICENSE.pdf
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[tox]
envlist = pep8, pylint, py26, py27, jenkins

[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
usedevelop= True
downloadcache = cache/pip
commands =
    python ./manage.py jenkins --settings=goldstone.settings.test_oak_c2

[testenv:venv]
commands = {posargs}

[testenv:pep8]
commands = pep8 --exclude=migrations goldstone

[testenv:pylint]
commands = pylint --rcfile=pylint.cfg goldstone

[testenv:checkin]
commands = {[testenv:pep8]commands}
           {[testenv:pylint]commands}
	
[testenv:cover]
commands =
    coverage run --source='./goldstone' --omit='./goldstone/settings/*,*/test*' manage.py test goldstone --settings=goldstone.settings.test_oak_c2
    coverage xml
    coverage report
    coverage html

[testenv:flake8]
builtins = _
exclude =  .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# H102 Apache 2.0 license header not found
# H4xx docstrings
# H701 empty localization string
# H702 Formatting operation should be outside of localization method call
# H803 git commit title should not end with period (disabled on purpose, see bug #1236621)
ignore = E127,E128,H102,H4,H701,H702,H803

[testenv:jenkins]
commands = python ./manage.py jenkins --settings=goldstone.settings.jenkins
{'fraction_non_alphanumeric': 0.0966952264381885, 'fraction_numerical': 0.03329253365973072, 'mean_word_length': 4.8039772727272725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7157935', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1259, 'n_words': 409}