diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -113,6 +113,7 @@ class SortImports(object):
                     file_contents = file_to_import_sort.read()
 
         if file_contents is None or ("isort:" + "skip_file") in file_contents:
+            self.skipped = True
             return
 
         self.in_lines = file_contents.split("\n")
Set skipped=True when we skip the file

We already do this when the configuration specifies skipping a file, but not when the file is empty or the _file_ specifies skipping.



The "skipped" flag is relied upon by some tooling (I'm not sure if it constitutes public API, but it should be fixed anyway), and that tooling is failing in these cases.