* manage.py file at the root of the project * targetting the project located at tests/test_project/settings.py That allows testing the linter through just calling it on the project itself. Using the new method coming soon: `python manage.py lintmigrations`
11 lines
261 B
Python
Executable File
11 lines
261 B
Python
Executable File
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
if __name__ == "__main__":
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_project.settings")
|
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
execute_from_command_line(sys.argv)
|