Linguist Exclusion in .gitattributes Not Changing Language Statistics #6681
Closed
alexdlaird
started this conversation in
General
Replies: 2 comments
-
It's hard to see in the UI and even CLI but you've got an extra space at the beginning of the You can almost see it with ➜ ls -1a | head -5
.gitattributes
.
..
.coveragerc
.git
➜ ... but ➜ eza -1a | head -3
.coveragerc
.git
' .gitattributes'
.github
.gitignore
➜ Correctinging the filename will fix the issue: ➜ git mv ' .gitattributes' .gitattributes
➜ git commit -m 'Rename'
[main 2b0b029] Rename
1 file changed, 0 insertions(+), 0 deletions(-)
rename .gitattributes => .gitattributes (100%)
➜ git check-attr --all tests/resources/new-otp-failed.html
tests/resources/new-otp-failed.html: diff: html
tests/resources/new-otp-failed.html: linguist-vendored: set
➜ github-linguist . --breakdown
97.65% 81979 Python
2.35% 1976 Makefile
Makefile:
Makefile
Python:
amazonorders/cli.py
amazonorders/entity/item.py
amazonorders/entity/order.py
amazonorders/entity/parsable.py
amazonorders/entity/recipient.py
amazonorders/entity/seller.py
amazonorders/entity/shipment.py
amazonorders/exception.py
amazonorders/orders.py
amazonorders/session.py
scripts/build-test-resources.py
setup.py
tests/test_cli.py
tests/test_integration.py
tests/test_orders.py
tests/test_session.py
tests/testcase.py
tests/unittestcase.py
➜ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Wow! Ha, thanks for finding that! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Python library that has some test resources in HTML. I've added an exclusion for this entire folder in
.gitattributes
: https://github.com/alexdlaird/amazon-orders-python/blob/main/%20.gitattributesBut the language statistics still show HTML as the primary language for the repo, and clicking on this only shows the files I've excluded. Does this take time to update? Am I missing a step?
Beta Was this translation helpful? Give feedback.
All reactions