From 09d13d81b95e9cbffd9507207a7bb3d697489463 Mon Sep 17 00:00:00 2001 From: Shunsuke Shimizu Date: Sun, 3 Apr 2022 15:33:31 +0900 Subject: [PATCH 1/2] sort files to make output more readable --- pysen/lint_command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pysen/lint_command.py b/pysen/lint_command.py index b629dbf..7d5bf7a 100644 --- a/pysen/lint_command.py +++ b/pysen/lint_command.py @@ -18,13 +18,14 @@ def __init__(self, base_dir: pathlib.Path, source: Source) -> None: def _get_sources( self, reporter: Reporter, filter_predicate: FilePredicateType - ) -> Set[pathlib.Path]: - return self.source.resolve_files( + ) -> List[pathlib.Path]: + sources = self.source.resolve_files( self.base_dir, filter_predicate, self.git_enabled(), reporter, ) + return sorted(sources) def _get_covered_files( self, From c648a621ec036521c0ed22bddd3b617d20715a63 Mon Sep 17 00:00:00 2001 From: Shunsuke Shimizu Date: Sun, 3 Apr 2022 16:07:54 +0900 Subject: [PATCH 2/2] drop import of Set, not yet used --- pysen/lint_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysen/lint_command.py b/pysen/lint_command.py index 7d5bf7a..efd767f 100644 --- a/pysen/lint_command.py +++ b/pysen/lint_command.py @@ -2,7 +2,7 @@ import logging import pathlib from abc import abstractmethod -from typing import Iterable, List, Optional, Sequence, Set +from typing import Iterable, List, Optional, Sequence from . import git_utils from .command import CommandBase