From 48fee71c2b520ca6ab8a9f344f98f7f23afbd195 Mon Sep 17 00:00:00 2001 From: David McDonald Date: Wed, 12 Aug 2020 15:38:01 +0100 Subject: [PATCH 1/2] Reduce risk of commiting files with personal information in --- .gitignore | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.gitignore b/.gitignore index 9b8b7c764..156540f1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,33 @@ +## We don't allow commiting of certain files types that are at risk they could be user files containg personal information +## Therefore if you are sure that a file is OK, you can explicitely add it to the list of files to be allowed +*.pdf +*.PDF +*.csv +*.CSV +*.doc +*.DOC +*.docx +*.DOCX +*.xls +*.XLS +*.xlsx +*.XLSX + +## Non user files allowed to be commited +!tests/test_pdf_files/no_eof_marker.pdf +!tests/test_pdf_files/multi_page_pdf.pdf +!tests/test_pdf_files/big.pdf +!tests/test_pdf_files/one_page_pdf.pdf +!tests/non_spreadsheet_files/actually_a_png.csv +!tests/spreadsheet_files/newline_windows.csv +!tests/spreadsheet_files/newline_unix.csv +!tests/non_spreadsheet_files/actually_a_png.xls +!tests/spreadsheet_files/EXCEL_95.XLS +!tests/spreadsheet_files/excel_97.xls +!tests/non_spreadsheet_files/actually_a_png.xlsx +!tests/spreadsheet_files/excel 2007.xlsx + + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] From 41b5b60cecf989ccd1e809773ddd01945544b93b Mon Sep 17 00:00:00 2001 From: David McDonald Date: Fri, 14 Aug 2020 10:22:39 +0100 Subject: [PATCH 2/2] Update .gitignore Make nice words Co-authored-by: Chris Hill-Scott --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 156540f1f..c4932f2d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -## We don't allow commiting of certain files types that are at risk they could be user files containg personal information -## Therefore if you are sure that a file is OK, you can explicitely add it to the list of files to be allowed +## We don’t allow committing certain file types that risk containing users’ personal information +## If you are sure that a file is OK, you can explicitly add it to the list of allowed files *.pdf *.PDF *.csv