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

Sort files to make output more readable #11

Merged
merged 2 commits into from
Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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