From 3f3abd98747b125d2e502bcec399b1264c7998ee Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Wed, 12 Oct 2016 20:26:28 -0700 Subject: [PATCH] Get rid of the "Skipped X files" messages from isort output. isort skips __init__.py by default, leading to these confusing messages: The casual reader will wonder what got skipped, and why, and whether it's OK. This change to our .isort.cfg files ensures that isort doesn't skip __init__.py files. All ours are empty anyway, so isort will do nothing with them, but this gets rid of those distracting messages. Testing Done: CI passed: https://travis-ci.org/pantsbuild/pants/builds/167197899 Reviewed at https://rbcommons.com/s/twitter/r/4301/ --- .isort.cfg | 1 + contrib/.isort.cfg | 1 + examples/.isort.cfg | 1 + 3 files changed, 3 insertions(+) diff --git a/.isort.cfg b/.isort.cfg index 65804ea032d..56a3c11940e 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -7,3 +7,4 @@ indent=2 lines_after_imports=2 known_first_party=internal_backend,pants,pants_test default_section=THIRDPARTY +not_skip=__init__.py diff --git a/contrib/.isort.cfg b/contrib/.isort.cfg index 2f4ad1f3743..a5c9daff647 100644 --- a/contrib/.isort.cfg +++ b/contrib/.isort.cfg @@ -7,3 +7,4 @@ indent=2 lines_after_imports=2 known_first_party=pants.contrib default_section=THIRDPARTY +not_skip=__init__.py diff --git a/examples/.isort.cfg b/examples/.isort.cfg index a91b8531c7b..030871976d2 100644 --- a/examples/.isort.cfg +++ b/examples/.isort.cfg @@ -7,3 +7,4 @@ indent=2 lines_after_imports=2 known_first_party=example default_section=THIRDPARTY +not_skip=__init__.py