Skip to content

Commit e639297

Browse files
committed
fix: Formatting and linting
1 parent c279c81 commit e639297

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

cbits/process_csv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ size_t get_delimiter_indices(uint8_t *buf, size_t len, uint8_t separator, size_t
192192
#else
193193
// SIMD not available or carryless multiplication not supported.
194194
// Signal fallback to Haskell implementation.
195-
(void)buf; (void)len; (void)indices;
195+
(void)buf; (void)len; (void)separator; (void)indices;
196196
return (size_t)-1;
197197
#endif
198198
}

dataframe-fastcsv/tests/Operations/ReadCsv.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,9 @@ testUnclosedQuote = TestLabel "malformed_unclosed_quote" $ TestCase $ do
448448
removeFile path
449449
case (result :: Either CsvParseError DataFrame) of
450450
Left CsvUnclosedQuote -> return ()
451+
Left other ->
452+
assertFailure
453+
("expected CsvUnclosedQuote, got " <> show other)
451454
Right _ ->
452455
assertFailure
453456
"readCsvFast should have thrown CsvUnclosedQuote on input with a stray quote"

dataframe-persistent/tests/PersistentTests.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
{-# LANGUAGE TemplateHaskell #-}
1414
{-# LANGUAGE TypeApplications #-}
1515
{-# LANGUAGE TypeFamilies #-}
16+
{-# LANGUAGE TypeOperators #-}
1617
{-# LANGUAGE UndecidableInstances #-}
1718

1819
module PersistentTests where

tests/Operations/Window.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ overMeanDeriveTest =
111111
expectedMeans = [15.0, 15.0, 60.0, 60.0, 60.0] :: [Double]
112112
actualMeans = case DI.getColumn "group_mean" result of
113113
Nothing -> error "group_mean column not found"
114-
Just col -> DI.toList @Double col
114+
Just c -> DI.toList @Double c
115115

116116
overSumTest :: Test
117117
overSumTest =
@@ -134,7 +134,7 @@ overSumTest =
134134
expectedSums = [30, 30, 300, 300] :: [Int]
135135
actualSums = case DI.getColumn "group_sum" result of
136136
Nothing -> error "group_sum column not found"
137-
Just col -> DI.toList @Int col
137+
Just c -> DI.toList @Int c
138138

139139
overCountTest :: Test
140140
overCountTest =
@@ -157,7 +157,7 @@ overCountTest =
157157
expectedCounts = [3, 3, 3, 2, 2] :: [Int]
158158
actualCounts = case DI.getColumn "group_count" result of
159159
Nothing -> error "group_count column not found"
160-
Just col -> DI.toList @Int col
160+
Just c -> DI.toList @Int c
161161

162162
mixedGlobalAndOverTest :: Test
163163
mixedGlobalAndOverTest =
@@ -182,7 +182,7 @@ mixedGlobalAndOverTest =
182182
expectedDeviations = [-5.0, 5.0, -50.0, 50.0] :: [Double]
183183
actualDeviations = case DI.getColumn "deviation" result of
184184
Nothing -> error "deviation column not found"
185-
Just col -> DI.toList @Double col
185+
Just c -> DI.toList @Double c
186186

187187
-- | Example from https://www.sumsar.net/blog/pandas-feels-clunky-when-coming-from-r/
188188
blogPostExampleGlobal :: Test

0 commit comments

Comments
 (0)