realpython / flask-boilerplate

Boilerplate template for a Python Flask application with Flask-SQLAlchemy, Flask-WTF, Fabric, Coverage, and Bootstrap
http://www.flaskboilerplate.com
Apache License 2.0
1.53k stars 535 forks source link

Update language definition. #23

Closed srseven closed 7 years ago

srseven commented 7 years ago

Update to Python instead of CSS.

mjhea0 commented 7 years ago

what does this do?

srseven commented 7 years ago

It will change the language displayed when viewing the repo. As we know this a Flask project so the correct language is Python but instead of Python it displays the language to be CSS because GitHub uses a program called linguist to detect the languages and amount (bytes) of code in each language and then chooses the language with most bytes of code. So this file tells linguist to ignore code written in HTML or CSS when calculating code so Python gets to be displayed as the major language of the repo.

mjhea0 commented 7 years ago

I see. I didn't know you could do that. Cool!