From 2b9f9436cf05ced489df4a7f55b4253c182364f2 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Fri, 16 Oct 2020 23:26:08 +0300 Subject: [PATCH 1/2] define __all__ define __all__ to make sure `from .util import *` won't polute the globals --- redisgraph/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redisgraph/util.py b/redisgraph/util.py index b691734..48ae127 100644 --- a/redisgraph/util.py +++ b/redisgraph/util.py @@ -1,6 +1,8 @@ import random import string +__all__ = ['random_string', 'quote_string'] + def random_string(length=10): """ Returns a random N chracter long string. From ac8002f227ed3f85ff57800c8b9cca4ed92f75f1 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Fri, 16 Oct 2020 23:27:34 +0300 Subject: [PATCH 2/2] Add LGTM badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 467a543..72a8f4a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![GitHub issues](https://img.shields.io/github/release/RedisGraph/redisgraph-py.svg)](https://github.com/RedisGraph/redisgraph-py/releases/latest) [![Codecov](https://codecov.io/gh/RedisGraph/redisgraph-py/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisGraph/redisgraph-py) [![Known Vulnerabilities](https://snyk.io/test/github/RedisGraph/redisgraph-py/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/RedisGraph/redisgraph-py?targetFile=requirements.txt) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/RedisGraph/redisgraph-py.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RedisGraph/redisgraph-py/alerts/) # redisgraph-py [![Forum](https://img.shields.io/badge/Forum-RedisGraph-blue)](https://forum.redislabs.com/c/modules/redisgraph)