Skip to content

Commit cd0afea

Browse files
committed
Apply pre-commit fixes (e.g. ruff, isort, whitespace)
1 parent b68dc54 commit cd0afea

File tree

29,601 files changed

+7794600
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

29,601 files changed

+7794600
-7
lines changed

pandas/tests/base/test_value_counts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_value_counts_null(null_obj, index_or_series_obj):
6363
elif isinstance(orig, MultiIndex):
6464
pytest.skip(f"MultiIndex can't hold '{null_obj}'")
6565

66-
if obj.dtype == 'object':
66+
if obj.dtype == "object":
6767
obj = obj.astype(str)
6868

6969

pandas/tests/frame/test_query_eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_query_duplicate_column_name(self, engine, parser):
168168
}
169169
).rename(columns={"B": "A"})
170170

171-
res = df.query('C == 1', engine=engine, parser=parser)
171+
res = df.query("C == 1", engine=engine, parser=parser)
172172

173173
expect = DataFrame(
174174
[[1, 1, 1]],
@@ -1411,7 +1411,7 @@ def test_expr_with_column_name_with_backtick_and_hash(self):
14111411
def test_expr_with_column_name_with_backtick(self):
14121412
# GH 59285
14131413
df = DataFrame({"a`b": (1, 2, 3), "ab": (4, 5, 6)})
1414-
result = df.query("`a``b` < 2") # noqa
1414+
result = df.query("`a``b` < 2")
14151415
# Note: Formatting checks may wrongly consider the above ``inline code``.
14161416
expected = df[df["a`b"] < 2]
14171417
tm.assert_frame_equal(result, expected)

pandas/tests/indexes/test_mixed_int_string.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
def test_mixed_int_string_index():
55
idx = pd.Index([0, "a", 1, "b", 2, "c"])
6-
6+
77
# Check if the index is of type Index
88
assert len(idx) == 6
99
assert idx[1] == "a"
1010
assert idx[-1] == "c"
11-
11+
1212
# Check if the index is sorted (it should not be)
1313
with pytest.raises(TypeError):
1414
idx.sort_values()

pandas/tests/indexes/test_setops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def test_union_unequal(self, index_flat, fname, sname, expected_name):
393393
else:
394394
index = index_flat
395395

396-
if index.dtype == 'object':
396+
if index.dtype == "object":
397397
index = index.astype(str)
398398

399399
# test copy.union(subset) - need sort for unicode and string
@@ -465,7 +465,7 @@ def test_intersect_unequal(self, index_flat, fname, sname, expected_name):
465465
else:
466466
index = index_flat
467467

468-
if index.dtype == 'object':
468+
if index.dtype == "object":
469469
index = index.astype(str)
470470
# test copy.intersection(subset) - need sort for unicode and string
471471
first = index.copy().set_names(fname)

venv/Include/blosc-export.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*********************************************************************
2+
Blosc - Blocked Shuffling and Compression Library
3+
4+
Author: Francesc Alted <francesc@blosc.org>
5+
6+
See LICENSE.txt for details about copyright and rights to use.
7+
**********************************************************************/
8+
#ifndef BLOSC_EXPORT_H
9+
#define BLOSC_EXPORT_H
10+
11+
/* Macros for specifying exported symbols.
12+
BLOSC_EXPORT is used to decorate symbols that should be
13+
exported by the blosc shared library.
14+
BLOSC_NO_EXPORT is used to decorate symbols that should NOT
15+
be exported by the blosc shared library.
16+
*/
17+
#if defined(BLOSC_SHARED_LIBRARY)
18+
#if defined(_MSC_VER)
19+
#define BLOSC_EXPORT __declspec(dllexport)
20+
#elif (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)
21+
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
22+
#define BLOSC_EXPORT __attribute__((dllexport))
23+
#else
24+
#define BLOSC_EXPORT __attribute__((visibility("default")))
25+
#endif /* defined(_WIN32) || defined(__CYGWIN__) */
26+
#else
27+
#error Cannot determine how to define BLOSC_EXPORT for this compiler.
28+
#endif
29+
#else
30+
#define BLOSC_EXPORT
31+
#endif /* defined(BLOSC_SHARED_LIBRARY) */
32+
33+
#if defined(__GNUC__) || defined(__clang__)
34+
#define BLOSC_NO_EXPORT __attribute__((visibility("hidden")))
35+
#else
36+
#define BLOSC_NO_EXPORT
37+
#endif /* defined(__GNUC__) || defined(__clang__) */
38+
39+
/* When testing, export everything to make it easier to implement tests. */
40+
#if defined(BLOSC_TESTING)
41+
#undef BLOSC_NO_EXPORT
42+
#define BLOSC_NO_EXPORT BLOSC_EXPORT
43+
#endif /* defined(BLOSC_TESTING) */
44+
45+
#endif /* BLOSC_EXPORT_H */

0 commit comments

Comments
 (0)