Skip to content

Commit

Permalink
Merge pull request #26 from Revolution1/feature/codacy
Browse files Browse the repository at this point in the history
add codacy-coverage
  • Loading branch information
Revolution1 committed Mar 30, 2018
2 parents 62bb4f6 + bdfa388 commit 98a8827
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exclude_paths:
- tests/**
- scripts/**
- docs/**
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ omit =
etcd3/errors/
tests/
etcd3/utils.py
etcd3/contrib/

[html]
directory = coverage_html_report
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ isort==4.3.4
yapf>=0.20.0
m2r==0.1.14
codecov>=1.4.0
codacy-coverage==1.3.11
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ deps = -r{toxinidir}/requirements_dev_py3.txt
deps = -r{toxinidir}/requirements_dev_py3.txt
commands =
coverage run -m pytest --basetemp={envtmpdir} -s -v
coverage xml
codecov
python-codacy-coverage

[testenv:py27]
commands =
Expand All @@ -36,6 +38,7 @@ setenv =
PYTHONPATH = {toxinidir}
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
CODACY_PROJECT_TOKEN=8dd1fa5c30484aef8ab7165c625d2edc
deps =
-r{toxinidir}/requirements_dev.txt
commands =
Expand Down

0 comments on commit 98a8827

Please sign in to comment.