Skip to content

Commit

Permalink
Mention gitignore in skip message.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 8, 2021
1 parent 6e4281f commit 6c1ec9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
NOTE: isort follows the [semver](https://semver.org/) versioning standard.
Find out more about isort's release policy [here](https://pycqa.github.io/isort/docs/major_releases/release_policy).

### 5.9.3 TBD
- Improved text of skipped file message to mention gitignore feature.

### 5.9.2 July 8th 2021
- Improved behavior of `isort --check --atomic` against Cython files.
- Fixed #1769: Future imports added below assignments when no other imports present.
Expand Down
5 changes: 3 additions & 2 deletions isort/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,8 +1204,9 @@ def main(argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] =
if config.verbose:
for was_skipped in skipped:
print(
f"{was_skipped} was skipped as it's listed in 'skip' setting"
" or matches a glob in 'skip_glob' setting"
f"{was_skipped} was skipped as it's listed in 'skip' setting, "
"matches a glob in 'skip_glob' setting, or is in a .gitignore file with "
"--skip-gitignore enabled."
)
print(f"Skipped {num_skipped} files")

Expand Down

0 comments on commit 6c1ec9a

Please sign in to comment.