Skip to content

Commit dadb1d2

Browse files
authored
Adds new codequality tools
Adds code health and coverage tools and adds badges for license and PyPi
2 parents 28e0336 + d8ef94d commit dadb1d2

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed

.landscape.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
doc-warnings: true
2+
test-warnings: true
3+
max-line-length: 120
4+
ignore-paths:
5+
- doc
6+
python-targets:
7+
- 3

README.rst

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,25 @@
22
Readme pyndl
33
============
44

5-
.. image:: https://travis-ci.com/dekuenstle/pyndl.svg?token=nAo9MxVBWCT7YyFRxEP4&branch=master
6-
:target: https://travis-ci.com/dekuenstle/pyndl
5+
.. image:: https://api.travis-ci.org/quantling/pyndl.svg
6+
:target: https://travis-ci.com/quantling/pyndl
7+
8+
.. image:: https://landscape.io/github/quantling/pyndl/master/landscape.svg?style=flat
9+
:target: https://landscape.io/github/quantling/pyndl/master
10+
:alt: Code Health
11+
12+
.. image:: https://coveralls.io/repos/github/quantling/pyndl/badge.svg?branch=master
13+
:target: https://coveralls.io/github/quantling/pyndl?branch=master
14+
15+
.. image:: https://img.shields.io/pypi/pyversions/pyndl.svg
16+
:target: https://pypi.python.org/pypi/pyndl/
17+
18+
.. image:: https://img.shields.io/github/license/quantling/pyndl.svg
19+
:target: https://github.com/quantling/pyndl/blob/master/LICENSE.txt
20+
21+
.. image:: https://zenodo.org/badge/80022085.svg
22+
:target: https://zenodo.org/badge/latestdoi/80022085
23+
724

825
This python3 package is a collection of useful script in order to run tasks on
926
huge amounts of text file corpora. Especially, it allows to efficiently apply
@@ -144,5 +161,3 @@ weights file :
144161
netCDF format is used to store these information along side with meta data,
145162
which contains the learning parameters, the time needed to calculate the
146163
weights, the version of the software used and other information.
147-
148-

pyndl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__author__ = ('David-Elias Künstle, Lennard Schneider, '
22
'Konstantin Sering, Marc Weitz')
33
__author_email__ = '[email protected]'
4-
__version__ = '0.2.2'
4+
__version__ = '0.2.3'
55
__license__ = 'MIT'
66
__description__ = ('Naive discriminative learning implements learning and '
77
'classification models based on the Rescorla-Wagner equations.')

tox.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ deps = pep8
1313
commands = pep8 pyndl tests
1414

1515
[testenv:testcov]
16+
usedevelop = True
17+
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
1618
deps =
17-
pytest-cov
18-
commands = py.test --cov=pyndl tests
19+
mock
20+
pytest
21+
pytest-runner
22+
sh
23+
coveralls
24+
commands =
25+
coverage run --source=pyndl setup.py test
26+
coveralls
1927

2028
[testenv:lint]
2129
deps = pylint

0 commit comments

Comments
 (0)