File tree Expand file tree Collapse file tree 6 files changed +59
-9
lines changed Expand file tree Collapse file tree 6 files changed +59
-9
lines changed Original file line number Diff line number Diff line change
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+
5
+ [report]
6
+ # Regexes for lines to exclude from consideration
7
+ exclude_lines =
8
+ # Don't complain about missing debug-only code:
9
+ def __repr__
10
+ if self\.debug
11
+
12
+ # Don't complain if tests don't hit defensive assertion code:
13
+ raise AssertionError
14
+ raise NotImplementedError
15
+
16
+ # Don't complain if tests don't hit abstract class
17
+ abc.
18
+
19
+ # Don't complain if non-runnable code isn't run:
20
+ if 0:
21
+ if __name__ == .__main__.:
22
+
23
+ ignore_errors = True
24
+ omit =
25
+ *__init__.py
26
+ *tests/test*
27
+
28
+ [html]
29
+ directory = coverage_html_report
Original file line number Diff line number Diff line change @@ -7,12 +7,23 @@ charset = utf-8
7
7
trim_trailing_whitespace = true
8
8
insert_final_newline = true
9
9
10
- [* .py ]
11
- indent_style = space
10
+ [* .{js,yml,css,html} ]
11
+ indent_size = 2
12
+
13
+ [* .{py,pyx,pxd} ]
12
14
indent_size = 4
15
+ max_line_length = 100
13
16
14
- [* .md ]
15
- trim_trailing_whitespace = false
17
+ [* .json ]
18
+ indent_size = 2
19
+ insert_final_newline = ignore
16
20
17
21
[Makefile ]
18
22
indent_style = tab
23
+
24
+ [* .md ]
25
+ indent_size = 4
26
+ trim_trailing_whitespace = false
27
+
28
+ [* .{c,cpp} ]
29
+ indent_size = 4
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ script:
17
17
- make lint
18
18
- make test
19
19
20
+ after_success :
21
+ - codecov
22
+
20
23
deploy :
21
24
provider : pypi
22
25
user : stegben
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ installself:
7
7
8
8
.PHONY : install
9
9
install :
10
- pip install -U pip wheel setuptools cython
10
+ pip install -U pip wheel setuptools cython==0.29.1
11
11
pip install -r requirements_dev.txt
12
12
make installself
13
13
@@ -17,11 +17,10 @@ lint:
17
17
18
18
.PHONY : test
19
19
test :
20
- python -m unittest
20
+ py.test --cov=uttut/ --cov-fail-under=90
21
21
22
22
.PHONY : all
23
- all : test lint
24
-
23
+ all : lint test
25
24
26
25
.PHONY : clean
27
26
clean :
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ travis] [ travis-image ]] [ travis-url ]
4
4
[ ![ pypi] [ pypi-image ]] [ pypi-url ]
5
+ [ ![ codecov] [ codecov-image ]] [ codecov-url ]
5
6
6
7
[ travis-image ] : https://img.shields.io/travis/Yoctol/uttut.svg?style=flat
7
8
[ travis-url ] : https://travis-ci.org/Yoctol/uttut
8
9
[ pypi-image ] : https://img.shields.io/pypi/v/uttut.svg?style=flat
9
10
[ pypi-url ] : https://pypi.python.org/pypi/uttut
11
+ [ codecov-image ] : https://codecov.io/gh/Yoctol/uttut/branch/master/graph/badge.svg
12
+ [ codecov-url ] : https://codecov.io/gh/Yoctol/uttut
10
13
11
14
UTTerance UTilities for dialogue system. This package provides some general utils when processing chatbot utterance data.
Original file line number Diff line number Diff line change 1
- flake8-config-yoctol==0.0.11
2
1
pypandoc
2
+
3
+ # dev
4
+ flake8-config-yoctol==0.0.11
5
+ ipdb
6
+ pytest
7
+ pytest-cov
You can’t perform that action at this time.
0 commit comments