Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

github shows ptools as a Fortran project! #101

Open
charlestonchas opened this issue Aug 29, 2017 · 3 comments
Open

github shows ptools as a Fortran project! #101

charlestonchas opened this issue Aug 29, 2017 · 3 comments
Assignees
Milestone

Comments

@charlestonchas
Copy link
Contributor

The github ptools page gives Fortran as the project language. WT*? Perhaps someone with suitable permissions can change this to Python/C++ or Python/C++/Fortran.

Other ptools entries on the same page are similarly bizarre. For example, ptools-private is apparently written in "red".

@benoistlaurent
Copy link
Member

benoistlaurent commented Aug 29, 2017

The language is not a setting but automatically detected by GitHub.

In number of lines, PTools' master branch actually contains more Fortran (10853 lines) than C++ (6010 lines).
It is therefore classified as a Fortran project by GitHub automatic routines.

I've tried a hack.
Let's wait for a few hours to see if it works.

@charlestonchas
Copy link
Contributor Author

charlestonchas commented Mar 9, 2020

The current contents of .gitattributes in main is

minimizers/*.f linguist-vendored
minimizers/lbfgs_wrapper/*.f linguist-vendored

But Github still misidentifies the repository main languages. Another option to try, according to the fairly recent exchange at https://github.community/t5/How-to-use-Git-and-GitHub/how-to-change-the-category/td-p/27790#, might be

*.py linguist-detectable=true
*.cpp linguist-detectable=true
*.f linguist-detectable=true
*.red linguist-detectable=false

[Note that our .red files are not the Red language but our own suffix, used for reduced (coarse-grained) pdb-format flat files.]

or else

*.f linguist-vendored

Could we try one of these?

@benoistlaurent
Copy link
Member

Tested...
Still not working.
Screenshot 2020-03-11 at 09 43 41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants