title: How can .gitattributes be used to get Github to display the correct primary language for a repo?
body: <p>I wrote a program in Python and used Bootstrap for its frontend.</p>
  
  <p>When I upload the directory on GitHub it shows that the project is 90% JavaScript and only 7.5% Python. I understand that this is happening because of the JS directory in the Bootstrap folder. </p>
  
  <p>I need to display Python as the primary project language for the repo.</p>
  
  <p>I did a little bit of research and learnt that adding the file <code>.gitattributes</code> to your project is a solution, but I have no idea what to add in that file to get Github ignore JavaScript when assessing the primary language of the project. </p>
  
  <p>I checked out the <a href="https://git-scm.com/docs/gitattributes" rel="noreferrer">official .gitattributes manual page</a> but couldn't find a direct solution to this issue.</p>
  
  <p>Here's what the repo looks like</p>
  
  <p><a href="https://i.stack.imgur.com/lw9Dw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lw9Dw.png" alt="Repo screenshot"></a></p>
  
  <p><a href="https://github.com/sharmaeshaan/Stats4R" rel="noreferrer">Link to Github repo</a></p>
  
  <p>Edit: All the CSS and JS files are in the <code>static/</code> folder, so I added a <code>.gitattributes</code> file to the repo and added <code>static/* linguist-vendored</code> in the first line, however the repo still shows JS as 90% of the language.</p>