Skip to content

Commit

Permalink
consolidate configs
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Feb 8, 2017
1 parent 7736ab1 commit 2877cc0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
@@ -1,6 +1,11 @@
[run]
branch = True
source = RestrictedPython
omit =
src/RestrictedPython/tests
src/RestrictedPython/tests/*.py
tests/*.py
bootstrap.py

[report]
precision = 3
7 changes: 0 additions & 7 deletions pytest.ini

This file was deleted.

16 changes: 16 additions & 0 deletions setup.cfg
Expand Up @@ -10,15 +10,31 @@ upload-dir = docs/html
ignore =
.travis.yml
bootstrap-buildout.py
bootstrap.py
buildout.cfg
jenkins.cfg
travis.cfg

[aliases]
test = pytest

[tool:pytest]
addopts =
testpaths =
tests
src/RestrictedPython/tests
norecursedirs = fixures

isort_ignore =
bootstrap.py


[isort]
force_alphabetical_sort = True
force_single_line = True
lines_after_imports = 2
line_length = 200
skip = bootstrap.py
not_skip = __init__.py

[flake8]
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Expand Up @@ -49,6 +49,13 @@ def read(*rnames):
package_dir={'': 'src'},
install_requires=[
'setuptools',

],
setup_requires=[
'pytest-runner',
],
test_requires=[
'pytest',
],
extras_require={
'docs': [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -8,9 +8,9 @@ envlist =
py35,
py36,
pypy,
coverage-report,
isort,
docs,
coverage-report,
skip_missing_interpreters = False

[testenv]
Expand Down

0 comments on commit 2877cc0

Please sign in to comment.