summaryrefslogtreecommitdiff
path: root/isort/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'isort/main.py')
-rw-r--r--isort/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/isort/main.py b/isort/main.py
index de30bd25..8842a318 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -60,6 +60,8 @@ def is_python_file(path: str) -> bool:
_root, ext = os.path.splitext(path)
if ext in ('.py', '.pyi'):
return True
+ if ext in ('.pex', ):
+ return False
# Skip editor backup files.
if path.endswith('~'):