Skip to content

Commit 8384c4a

Browse files
committed
Exclude migrations from pyflakes, landscape
1 parent 1d5c143 commit 8384c4a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.landscape.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ autodetect: yes
88
ignore-paths:
99
- docs
1010
- cms/migrations
11+
- cms/migrations_django
1112
- cms/tests/*
1213
- cms/test_utils/*
13-
- menus/migrations/*
14+
- menus/migrations/*
15+
- menus/migrations_django/*

cms/test_utils/util/static_analysis.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def _pyflakes_report_with_nopyflakes(self, messageClass, node, *args, **kwargs):
1515

1616
def _pyflakes_no_migrations(self, tree, filename='(none)', builtins=None):
1717
if os.path.basename(os.path.dirname(filename)) in ('migrations',
18-
'south_migrations'):
18+
'south_migrations',
19+
'migrations_django'):
1920
self.messages = []
2021
else:
2122
Checker.___init___(self, tree, filename, builtins)

0 commit comments

Comments
 (0)