Skip to content

Commit a0350e7

Browse files
chore: update pre-commit hooks (#3005)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](astral-sh/ruff-pre-commit@v0.1.14...v0.2.0) - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.27.4](python-jsonschema/check-jsonschema@0.27.3...0.27.4) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c1e4f9f commit a0350e7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
additional_dependencies: [pyyaml]
2828

2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.1.14
30+
rev: v0.2.0
3131
hooks:
3232
- id: ruff
3333
args: ["--fix", "--show-fixes"]
@@ -62,7 +62,7 @@ repos:
6262
files: ^tests/
6363

6464
- repo: https://github.com/python-jsonschema/check-jsonschema
65-
rev: 0.27.3
65+
rev: 0.27.4
6666
hooks:
6767
- id: check-github-workflows
6868
args: ["--verbose"]

dev/generate-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def gettests(self, testdata):
146146
origtemp[key] = value
147147

148148
temp = copy.deepcopy(origtemp)
149-
funcPy = eval(self.name, globals(), locals()) # noqa: PGH001
149+
funcPy = eval(self.name, globals(), locals())
150150

151151
intests = OrderedDict()
152152
outtests = OrderedDict()

tests/test_0080_flatpandas_multiindex_rows_and_columns.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ def key(n):
2222
if n in ("values", "x", "y"):
2323
return n
2424
else:
25-
return tuple(
26-
eval(n.replace("nan", "None").replace("null", "None")) # noqa: PGH001
27-
)
25+
return tuple(eval(n.replace("nan", "None").replace("null", "None")))
2826

2927
def regularize(data):
3028
if isinstance(data, dict):

0 commit comments

Comments
 (0)