Skip to content

Commit

Permalink
Some lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gskorokhod committed Nov 17, 2023
1 parent 064f173 commit a63f67e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/essence-feature-usage-stats/stats/essence_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def __hash__(self):

def __eq__(self, other):
"""EssenceFile objects are considered equal if their paths are the same."""
return self._fpath == other._fpath
return self.path == other.path

def __str__(self): # noqa: D105
return f"EssenceFile({self._fpath}): {self.n_lines} lines"
Expand Down
1 change: 1 addition & 0 deletions tools/essence-feature-usage-stats/utils/git_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ def parse_repo_url(repo_url: str) -> Tuple[str, str]:
return user, repo

elements = repo_url.split("/")

return tuple(elements[:2])

0 comments on commit a63f67e

Please sign in to comment.