Skip to content

Commit 907c1dc

Browse files
author
Daniel
authored
Added Travis-CI setup (#1)
- Added 'build' to flake8 exclude - Fixed a lint error
1 parent 28e449d commit 907c1dc

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
python: 2.7
3+
install:
4+
- pip install -r requirements.txt
5+
- python setup.py install
6+
script:
7+
- make test

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ test_unit2:
1818

1919
test_unit3:
2020
python3 -bb -m pytest tests/unit
21-

databuilder/publisher/elasticsearch_publisher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _fetch_old_index(self):
134134
try:
135135
indices = self.elasticsearch_client.indices.get_alias(self.elasticsearch_alias).keys()
136136
return indices
137-
except NotFoundError as ne:
137+
except NotFoundError:
138138
LOGGER.warn("Received index not found error from Elasticsearch", exc_info=True)
139139
# return empty list on exception
140140
return []

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
format = pylint
3-
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv,databuilder/sql_parser/usage/presto/antlr_generated
3+
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv,build,databuilder/sql_parser/usage/presto/antlr_generated
44
max-complexity = 10
55
max-line-length = 120
66
ignore = NONE

0 commit comments

Comments
 (0)