Skip to content

Commit

Permalink
Sort files to make output more readable (#11)
Browse files Browse the repository at this point in the history
* sort files to make output more readable

* drop import of Set, not yet used
  • Loading branch information
grafi-tt authored Apr 6, 2022
1 parent cd46f06 commit 7336708
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pysen/lint_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 7336708

Please sign in to comment.