Code style - WikipediaLibrary/TWLight GitHub Wiki
Code and framework
TWLight runs on Django 1.11 (a Django 2 upgrade will be taking place soon), and uses Python 3.7 via a virtual environment.
Linting
We enforce Python code formatting via black - tests will fail (both locally and on Travis) if black detects an issue with your code formatting. Run black on your code before pushing it via docker-compose exec twlight /venv/bin/black -t py37 /app/TWLight
.