Skip to content

Commit 825ceb3

Browse files
committed
add travis and pep8ify
1 parent ab1ca1e commit 825ceb3

File tree

4 files changed

+21
-50
lines changed

4 files changed

+21
-50
lines changed

.gitignore

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,8 @@
22
__pycache__/
33
*.py[cod]
44

5-
# C extensions
6-
*.so
7-
8-
# Distribution / packaging
9-
.Python
10-
env/
11-
build/
12-
develop-eggs/
135
dist/
14-
downloads/
15-
eggs/
16-
lib/
17-
lib64/
18-
parts/
19-
sdist/
20-
var/
216
*.egg-info/
227
.installed.cfg
238
*.egg
24-
25-
# PyInstaller
26-
# Usually these files are written by a python script from a template
27-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
28-
*.manifest
29-
*.spec
30-
31-
# Installer logs
32-
pip-log.txt
33-
pip-delete-this-directory.txt
34-
35-
# Unit test / coverage reports
36-
htmlcov/
37-
.tox/
38-
.coverage
39-
.cache
40-
nosetests.xml
41-
coverage.xml
42-
43-
# Translations
44-
*.mo
45-
*.pot
46-
47-
# Django stuff:
48-
*.log
49-
50-
# Sphinx documentation
51-
docs/_build/
52-
53-
# PyBuilder
54-
target/
9+
.idea

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
sudo: false
3+
4+
python:
5+
- "2.7"
6+
# - "3.4"
7+
8+
install:
9+
- pip install coverage codecov flake8
10+
11+
script:
12+
- coverage run --source=pydf setup.py test
13+
- flake8 --max-line-length 120 pydf/
14+
15+
after_success:
16+
- codecov

pydf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .wkhtmltopdf import *
1+
from .wkhtmltopdf import * # noqa

pydf/wkhtmltopdf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def gen_pdf(src, cmd_args):
9898
# it seems wkhtmltopdf's error codes can be false, we'll ignore them if we
9999
# seem to have generated a pdf
100100
if returncode != 0 and pdf_string[:4] != '%PDF':
101-
raise IOError('error running wkhtmltopdf, command: %r\nresponse: "%s"' % \
102-
(cmd_args, stderr.strip(' \n')))
101+
raise IOError('error running wkhtmltopdf, command: %r\nresponse: "%s"' %
102+
(cmd_args, stderr.strip(' \n')))
103103
return pdf_string
104104

105105
if is_url:
@@ -145,4 +145,4 @@ def get_extended_help():
145145
146146
:return: extended help string
147147
"""
148-
return execute_wk('-H')[0]
148+
return execute_wk('-H')[0]

0 commit comments

Comments
 (0)