From a576f1d404fd39481cf8990d64ea7cce1447a3ff Mon Sep 17 00:00:00 2001 From: Marcus Boyd <50230945+marcus7070@users.noreply.github.com> Date: Wed, 16 Dec 2020 04:10:18 +1030 Subject: [PATCH] Fix github-linguist statistics (#547) * Added .gitattributes Tell git that the test/testdata/ files and Jupyter Notebooks are binary files, ie. do not display diffs and do not touch line endings in those files. * Moved 'CQ examples.ipynb' to examples directory Now github-linguist will classify it as documentation, and the massive line count in that file will stop skewing the language statistics for CadQuery on Github. --- .gitattributes | 6 ++++++ CQ examples.ipynb => examples/CQ examples.ipynb | 0 2 files changed, 6 insertions(+) create mode 100644 .gitattributes rename CQ examples.ipynb => examples/CQ examples.ipynb (100%) diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..d8383eddf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Don't display text diffs for files that are not human readable +# Git should not modify line endings in these test files +tests/testdata/* -diff -text + +# Jupyter notebooks should be classified as documentation +*.ipynb linguist-documentation -diff -text diff --git a/CQ examples.ipynb b/examples/CQ examples.ipynb similarity index 100% rename from CQ examples.ipynb rename to examples/CQ examples.ipynb