Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Test only python modules in lint.

Michal Ociepka2dba9b769661
diff --git a/lint.py b/lint.py
index 4f6dbbd98a..986e5746a7 100755
--- a/lint.py
+++ b/lint.py
@@ -135,9 +135,9 @@ DISABLED_WARNINGS = [
def run(show_reports=False):
- targets = [x for x in os.listdir('.') if (os.path.isdir(x)
- and not x.startswith('.')
- and not x.endswith('.egg-info'))]
+ targets = [x for x in os.listdir('.')
+ if (os.path.isdir(x) and
+ os.path.exists('%s/__init__.py' % (x,)))]
linter = lint.PyLinter()