Last active
July 4, 2019 20:34
-
-
Save jefftriplett/c28c603c920e649d54edede311a5e87e to your computer and use it in GitHub Desktop.
Django + Modd + Maybe Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run the test suite if a source or test file changes | |
**/tests/test_*.py { | |
# prep +onchange: pytest @dirmods | |
prep +onchange: pytest @mods | |
} | |
requirements.txt { | |
# prep +onchange: pytest @dirmods | |
prep +onchange: " | |
pip install -U -r requirements.txt | |
pip list --outdated" | |
} | |
**/models.py { | |
# prep +onchange: pytest @dirmods | |
prep +onchange: " | |
echo @mods | |
python manage.py makemigrations | |
python manage.py migrate | |
black ." | |
} | |
# Server runs on port localhost:8080 | |
*.py !**/tests/test_*.py !**/models.py { | |
daemon: " | |
# django | |
python manage.py runserver" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment