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

Added lines storing #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

KOLANICH
Copy link

No description provided.

@KOLANICH
Copy link
Author

@jhermann

@@ -472,6 +472,8 @@ def _initialise(self):
self.default_values = {}
self.extra_values = []
self._created = False
# for lines
self.lines = {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

a better name would be source_map and the comment is redundant.

generally, your PR is missing docs + tests.

@@ -514,7 +516,7 @@ def _check(entry):
return val


def __setitem__(self, key, value, unrepr=False):
def __setitem__(self, key, value, unrepr=False, lines=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

a better name would be position or line_range.

@@ -571,7 +573,8 @@ def __setitem__(self, key, value, unrepr=False):
else:
raise TypeError('Value is not a string "%s".' % value)
dict.__setitem__(self, key, value)

if(lines != None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

just if lines:, also this is not PEP8 compliant.

@KOLANICH
Copy link
Author

KOLANICH commented Oct 3, 2017

@jhermann

@coveralls
Copy link

coveralls commented Feb 17, 2018

Coverage Status

Coverage increased (+0.08%) to 81.543% when pulling c2e1c47 on KOLANICH:line-number into e36c7b4 on DiffSK:master.

@jhermann
Copy link
Collaborator

From what I can see, there's still PEP8 violations. Please use pylint, or pep8 to check your changes, and please do not squash changes, add more commits to your branch.

@KOLANICH KOLANICH force-pushed the line-number branch 3 times, most recently from 84323b5 to c2e1c47 Compare February 17, 2018 10:45
@KOLANICH
Copy link
Author

KOLANICH commented Aug 3, 2018

@jhermann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants