Skip to content

Commit d13aa23

Browse files
authored
Merge pull request #5 from Linusp/ci
add travis ci
2 parents a82e876 + cb21b46 commit d13aa23

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: python
2+
3+
python:
4+
- "3.6"
5+
6+
install: "make deps"
7+
8+
script:
9+
- "make lint"

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
lint: clean
2-
flake8 inoreader --format=pylint || true
2+
flake8 inoreader --format=pylint
33

44
clean:
55
- find . -iname "*__pycache__" | xargs rm -rf
66
- find . -iname "*.pyc" | xargs rm -rf
77
- rm cobertura.xml -f
88
- rm testresult.xml -f
99
- rm .coverage -f
10+
- rm .pytest_cache -rf
1011

1112
venv:
1213
- virtualenv --python=$(shell which python3) --prompt '<venv:inoreader>' venv
1314

14-
deps: venv
15-
- venv/bin/pip install -U pip setuptools
16-
- venv/bin/pip install -r requirements.txt
15+
deps:
16+
- pip install -U pip setuptools
17+
- pip install -r requirements.txt

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Inoreader
22
=========
33

4+
![](https://api.travis-ci.org/Linusp/python-inoreader.png?branch=master)
5+
46
Python wrapper of Inoreader API.
57

68
## Installation

inoreader/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __get_stream_contents(self, stream_id, continuation=''):
124124

125125
url = urljoin(BASE_URL, 'stream/contents/' + quote_plus(stream_id))
126126
params = {
127-
'n': 50, # default 20, max 1000
127+
'n': 50, # default 20, max 1000
128128
'r': '',
129129
'c': continuation,
130130
'output': 'json'

inoreader/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def from_json(cls, data):
2626
'htmlUrl': data['htmlUrl'],
2727
'iconUrl': data['iconUrl']
2828
}
29-
return cls(**subscription_info)
29+
return cls(**subscription_info)

0 commit comments

Comments
 (0)