Skip to content

Commit 62dcbee

Browse files
authored
Merge pull request #2 from macbre/v2.2.4-dependencies
Update dependencies + tag v2.2.4
2 parents 7f26484 + 67f05cd commit 62dcbee

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ ENV/
100100
# mypy
101101
.mypy_cache/
102102

103+
*.swp
103104
env*/
104105
.pytest_cache/
105106
.idea/

.pylintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[MESSAGES CONTROL]
2+
disable=too-many-arguments,unexpected-keyword-arg,pointless-string-statement
3+
max-line-length=120

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ python:
55
- "3.5"
66
- "3.6"
77
install: pip install -e .[dev]
8-
script: py.test test
8+
script: make test && make lint

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ coverage:
1616
coverage report $(coverage_options)
1717

1818
lint:
19-
pylint sql_metadata.py
19+
pylint wikia_common_kibana.py
2020

2121
publish:
2222
# run git tag -a v0.0.0 before running make publish

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
VERSION = '2.2.3'
3+
VERSION = '2.2.4'
44

55
# @see https://github.com/pypa/sampleproject/blob/master/setup.py
66
setup(
@@ -15,8 +15,8 @@
1515
extras_require={
1616
'dev': [
1717
'coverage==4.5.1',
18-
'pylint==1.8.2',
19-
'pytest==3.4.0',
18+
'pylint==1.8.4',
19+
'pytest==3.5.1',
2020
]
2121
},
2222
install_requires=[

wikia_common_kibana.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
since = now - period
6767
else:
6868
since += 1
69-
self._logger.info("Using provided {0} timestamp as since ({1} seconds ago)".format(since, now - since))
69+
self._logger.info("Using provided %s timestamp as since (%d seconds ago)", since, now - since)
7070

7171
self._since = since
7272
self._to = now - self.SHORT_DELAY # give logs some time to reach Logstash
@@ -78,9 +78,9 @@ def __init__(
7878
self.format_index(prefix=index_prefix, timestamp=now, sep=index_sep),
7979
])
8080

81-
self._logger.info("Using {} indices".format(self._index))
82-
self._logger.info("Querying for messages from between {} and {}".
83-
format(self.format_timestamp(self._since), self.format_timestamp(self._to)))
81+
self._logger.info("Using %s indices", self._index)
82+
self._logger.info("Querying for messages from between %s and %s",
83+
self.format_timestamp(self._since), self.format_timestamp(self._to))
8484

8585
@staticmethod
8686
def format_index(prefix, timestamp, sep='-'):
@@ -274,7 +274,7 @@ def get_aggregations(self, query, group_by, stats_field, percents=(50, 95, 99, 9
274274
# add @timestamp range
275275
body['query']['bool']['must'].append(self._get_timestamp_filer())
276276

277-
self._logger.info("Getting aggregations for {} field when grouped by {}".format(group_by, stats_field))
277+
self._logger.info("Getting aggregations for %s field when grouped by %s", group_by, stats_field)
278278

279279
res = self._es.search(
280280
body=body,

0 commit comments

Comments
 (0)