handle linting a project in pwd
When calling "django-migration-linter ." be able to handle it (especially with cache)
This commit is contained in:
1 parent
75c969c6a9
commit
009153fbf4
5 files changed
+30
-3
No files matched your search
@@ -49,7 +49,7 @@ def find_project_settings_module(path):
|
||||
|
||||
def split_path(path):
|
||||
a, b = os.path.split(path)
|
||||
return (split_path(a) if (len(a) > 0 and a != "/") else []) + [b]
|
||||
return (split_path(a) if (len(a) > 0 and a != "/") else []) + ([b] if b else [])
|
||||
|
||||
|
||||
def split_migration_path(migration_path):
|
||||
|
||||
Reference in new issue
Block a user