Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53a501f

Browse files
committed
new tests and fixed docs links
1 parent3fb387b commit53a501f

File tree

6 files changed

+86
-6
lines changed

6 files changed

+86
-6
lines changed

‎.coveragerc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[report]
2+
omit =
3+
*/python?.?/*
4+
*/site-packages/nose/*
5+
*__init__*

‎.travis.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ matrix:
1212
-python:3.6
1313
env:TOX_ENV=py36
1414
install:
15-
-pip install codecov
15+
-pip install -r test_requirements.txt
16+
before_script:
17+
-flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
18+
-flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
1619
script:
17-
-coverage run
20+
-pip3 install -e .
21+
-tox -e $TOX_ENV
22+
-pip3 uninstall -y algorithms
1823
notifications:
1924
email:false

‎docs/readme.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ print(binary_search(arr, 3))
5555
#Tree
5656

5757
- Searches
58-
-[Binary Search](binary_search)
58+
-[Binary Search](searches/binary-search)
5959
- Sorting
60-
- [Merge Sort](merge_sort)
60+
- [Merge Sort](sorting/merge-sort)
6161

6262

6363
#Related

‎readme.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ print(binary_search(arr, 3))
5555
#Tree
5656

5757
- Searches
58-
-[Binary Search](binary_search)
58+
-[Binary Search](docs/searches/binary-search)
5959
- Sorting
60-
- [Merge Sort](merge_sort)
60+
- [Merge Sort](docs/sorting/merge-sort)
6161

6262

6363
#Related

‎tests_requirements.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
flake8
2+
python-coveralls
3+
coverage
4+
nose
5+
pytest
6+
tox

‎tox.ini‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[tox]
2+
envlist =
3+
py34
4+
py35
5+
py36
6+
coverage
7+
8+
[testenv]
9+
passenv = TRAVIS TRAVIS_*
10+
basepython =
11+
py34: python3.4
12+
py35: python3.5
13+
py36: python3.6
14+
py37: python3.7
15+
deps =
16+
coverage
17+
coveralls
18+
commands =
19+
coverage run --source=tests,allalgorithms -m unittest discover tests
20+
coverage report -m
21+
coveralls
22+
23+
[testenv:py34]
24+
passenv = CI TRAVIS TRAVIS_*
25+
basepython =
26+
python3.4
27+
deps =
28+
pytest
29+
commands =
30+
python3 -m unittest discover tests
31+
python3 -m pytest tests
32+
33+
[testenv:py35]
34+
passenv = CI TRAVIS TRAVIS_*
35+
basepython =
36+
python3.5
37+
deps =
38+
pytest
39+
commands =
40+
python3 -m unittest discover tests
41+
python3 -m pytest tests
42+
43+
[testenv:py36]
44+
passenv = CI TRAVIS TRAVIS_*
45+
basepython =
46+
python3.4
47+
deps =
48+
pytest
49+
commands =
50+
python3 -m unittest discover tests
51+
python3 -m pytest tests
52+
53+
[testenv:coverage]
54+
passenv = CI TRAVIS TRAVIS_*
55+
skip_install = True
56+
basepython =
57+
python3.5
58+
commands =
59+
coverage run --source=tests,allalgorithms -m unittest discover tests
60+
coverage report -m
61+
coveralls
62+
deps =
63+
coverage
64+
coveralls

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp