From 856806c415045d3dd4357def0ace952b6a265ee2 Mon Sep 17 00:00:00 2001 From: Paolo Lammens Date: Tue, 15 Sep 2020 20:06:59 +0100 Subject: [PATCH 1/3] CLN: clean up new detected trailing whitespace --- pandas/_libs/src/ujson/lib/ultrajsonenc.c | 2 +- pandas/_libs/tslibs/src/datetime/np_datetime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/_libs/src/ujson/lib/ultrajsonenc.c b/pandas/_libs/src/ujson/lib/ultrajsonenc.c index 5343999c369f7..2af10a5b72d33 100644 --- a/pandas/_libs/src/ujson/lib/ultrajsonenc.c +++ b/pandas/_libs/src/ujson/lib/ultrajsonenc.c @@ -1134,7 +1134,7 @@ void encode(JSOBJ obj, JSONObjectEncoder *enc, const char *name, } break; - + } } diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/datetime/np_datetime.c index f647098140528..8eb995dee645b 100644 --- a/pandas/_libs/tslibs/src/datetime/np_datetime.c +++ b/pandas/_libs/tslibs/src/datetime/np_datetime.c @@ -312,7 +312,7 @@ int cmp_npy_datetimestruct(const npy_datetimestruct *a, * object into a NumPy npy_datetimestruct. Uses tzinfo (if present) * to convert to UTC time. * - * The following implementation just asks for attributes, and thus + * The following implementation just asks for attributes, and thus * supports datetime duck typing. The tzinfo time zone conversion * requires this style of access as well. * From 4dd1d4906a2528604addbae592aadafdb05b9bfa Mon Sep 17 00:00:00 2001 From: Paolo Lammens Date: Wed, 14 Oct 2020 14:15:14 +0100 Subject: [PATCH 2/3] BLD: add `trailing-whitespace` pre-commit hook --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1c6d36133f067..a14097198ea32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -62,3 +62,5 @@ repos: hooks: - id: end-of-file-fixer exclude: '.html$|^LICENSES/|.csv$|.txt$|.svg$|.py$' + - id: trailing-whitespace + exclude: '.html$|.svg$' From 2b76448b966c9f2a80320156903d1cf342cec408 Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Sun, 18 Oct 2020 11:23:39 +0100 Subject: [PATCH 3/3] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a14097198ea32..dc6f0e022f0d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -63,4 +63,4 @@ repos: - id: end-of-file-fixer exclude: '.html$|^LICENSES/|.csv$|.txt$|.svg$|.py$' - id: trailing-whitespace - exclude: '.html$|.svg$' + exclude: \.(html|svg)$