| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2408166 commit 2086b34
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,16 +16,17 @@ | |||
| 16 | 16 | # See https://pre-commit.com/hooks.html for more hooks | |
| 17 | 17 | repos: | |
| 18 | 18 | - repo: https://github.com/pre-commit/pre-commit-hooks | |
| 19 | - rev: v4.0.1 | ||
| 19 | + rev: v6.0.0 | ||
| 20 | 20 | hooks: | |
| 21 | 21 | - id: trailing-whitespace | |
| 22 | 22 | - id: end-of-file-fixer | |
| 23 | 23 | - id: check-yaml | |
| 24 | 24 | - repo: https://github.com/psf/black | |
| 25 | - rev: 22.3.0 | ||
| 25 | + rev: 23.7.0 | ||
| 26 | 26 | hooks: | |
| 27 | 27 | - id: black | |
| 28 | 28 | - repo: https://github.com/pycqa/flake8 | |
| 29 | - rev: 3.9.2 # version-scanner: ignore | ||
| 29 | + rev: 6.1.0 # version-scanner: ignore | ||
| 30 | 30 | hooks: | |
| 31 | 31 | - id: flake8 | |
| 32 | + args: [--config, packages/google-cloud-alloydb/.flake8] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ | |||
| 33 | 33 | "numpy >= 1.24.0, <= 2.2.6 ; python_version == '3.10'", | |
| 34 | 34 | "numpy >= 1.24.0 ; python_version != '3.10'", | |
| 35 | 35 | "packaging >= 24.2.0", | |
| 36 | - "pandas >= 1.5.3, < 3.0.0", | ||
| 36 | + "pandas >= 1.5.3, < 4.0.0", | ||
| 37 | 37 | "pyarrow >= 13.0.0", | |
| 38 | 38 | ] | |
| 39 | 39 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,6 +83,13 @@ def data_missing_for_sorting(): | |||
| 83 | 83 | return JSONArray._from_sequence([json.dumps({"b": 1}), None, json.dumps({"a": 4})]) | |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | + @pytest.fixture | ||
| 87 | + def data_for_sorting(): | ||
| 88 | + return JSONArray._from_sequence( | ||
| 89 | + [json.dumps({"b": 1}), json.dumps({"c": 4}), json.dumps({"a": 2})] | ||
| 90 | + ) | ||
| 91 | + | ||
| 92 | + | ||
| 86 | 93 | @pytest.fixture | |
| 87 | 94 | def na_cmp(): | |
| 88 | 95 | """ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -232,6 +232,18 @@ def test_sort_values(self, data_for_sorting): | |||
| 232 | 232 | def test_sort_values_frame(self, data_for_sorting): | |
| 233 | 233 | super().test_sort_values_frame(data_for_sorting) | |
| 234 | 234 | ||
| 235 | + @pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.") | ||
| 236 | + def test_rank(self, data_for_sorting, ascending): | ||
| 237 | + super().test_rank(data_for_sorting, ascending) | ||
| 238 | + | ||
| 239 | + @pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.") | ||
| 240 | + def test_rank_method(self, data_for_sorting, method): | ||
| 241 | + super().test_rank_method(data_for_sorting, method) | ||
| 242 | + | ||
| 243 | + @pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.") | ||
| 244 | + def test_rank_missing(self, data_missing_for_sorting, na_option): | ||
| 245 | + super().test_rank_missing(data_missing_for_sorting, na_option) | ||
| 246 | + | ||
| 235 | 247 | def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): | |
| 236 | 248 | # This test was failing compliance checks because it attempted to match | |
| 237 | 249 | # a pytest regex match using an empty string (""), which pytest version | |
| Back | FazBrowse Home | New Git URL |
0 commit comments