Skip to content

Commit 1e27933

Browse files
plammensMarcoGorelli
authored and
Kevin D Smith
committed
CLN: clean up new detected trailing whitespace (pandas-dev#36588)
* CLN: clean up new detected trailing whitespace * BLD: add `trailing-whitespace` pre-commit hook * Update .pre-commit-config.yaml Co-authored-by: Marco Gorelli <[email protected]>
1 parent faafc16 commit 1e27933

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ repos:
7171
hooks:
7272
- id: end-of-file-fixer
7373
exclude: ^LICENSES/|\.(html|csv|txt|svg|py)$
74+
- id: trailing-whitespace
75+
exclude: \.(html|svg)$

pandas/_libs/src/ujson/lib/ultrajsonenc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ void encode(JSOBJ obj, JSONObjectEncoder *enc, const char *name,
11341134
}
11351135

11361136
break;
1137-
1137+
11381138
}
11391139
}
11401140

pandas/_libs/tslibs/src/datetime/np_datetime.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ int cmp_npy_datetimestruct(const npy_datetimestruct *a,
312312
* object into a NumPy npy_datetimestruct. Uses tzinfo (if present)
313313
* to convert to UTC time.
314314
*
315-
* The following implementation just asks for attributes, and thus
315+
* The following implementation just asks for attributes, and thus
316316
* supports datetime duck typing. The tzinfo time zone conversion
317317
* requires this style of access as well.
318318
*

0 commit comments

Comments
 (0)