Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define __all__ #95

Merged
merged 3 commits into from
Oct 28, 2020
Merged

define __all__ #95

merged 3 commits into from
Oct 28, 2020

Conversation

gkorland
Copy link
Contributor

define all to make sure from .util import * won't polute the globals

define __all__  to make sure `from .util import *` won't polute the globals
@gkorland gkorland requested a review from swilly22 October 16, 2020 20:26
@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #95 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #95      +/-   ##
==========================================
+ Coverage   84.95%   84.98%   +0.02%     
==========================================
  Files           8        8              
  Lines         585      586       +1     
==========================================
+ Hits          497      498       +1     
  Misses         88       88              
Impacted Files Coverage Δ
redisgraph/util.py 88.23% <100.00%> (+0.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d06449f...32959bd. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented Oct 16, 2020

This pull request fixes 3 alerts when merging ac8002f into 5680907 - view on LGTM.com

fixed alerts:

  • 3 for 'import *' may pollute namespace

@@ -1,6 +1,8 @@
import random
import string

__all__ = ['random_string', 'quote_string']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary ?
when importing everything from this module (util.py) the importer will get random_string and quote_string by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgtm-com
Copy link

lgtm-com bot commented Oct 28, 2020

This pull request fixes 3 alerts when merging 32959bd into d06449f - view on LGTM.com

fixed alerts:

  • 3 for 'import *' may pollute namespace

@swilly22 swilly22 merged commit 94e2631 into master Oct 28, 2020
@swilly22 swilly22 deleted the LGTM-warnings-1 branch October 28, 2020 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants