Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdoukas committed Jul 1, 2020
1 parent bd1e2e0 commit 2d40660
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cwlkernel/AutoCompleteEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def suggest(self, code: str, cursor_pos: int) -> Dict:
token = ''
try:
matches = list(set(self._commands_trie.values(prefix=token)))
matches.sort(key=lambda m: len(m))
matches.sort(key=len)
except KeyError:
matches = []
cursor_end = cursor_pos
Expand Down
2 changes: 1 addition & 1 deletion cwlkernel/CWLKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, **kwargs):
self._workflow_composer: Optional[CWLWorkflow] = None
self._github_resolver: CWLGitResolver = CWLGitResolver(
Path(os.sep.join([CONF.CWLKERNEL_BOOT_DIRECTORY, self.ident, 'git'])))
if self.log is None:
if self.log is None: # pylint: disable=access-member-before-definition
self.log = logging.getLogger()

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion cwlkernel/kernel_magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,4 @@ def magics(kernel: CWLKernel, arg: str):
if os.path.isfile(magic_file) and magic_file.endswith('.py'):
print('external magic command imported', magic_file)
with open(magic_file) as code:
exec(code.read())
exec(code.read()) # pylint: disable=exec-used

0 comments on commit 2d40660

Please sign in to comment.