Skip to content

Commit aa6e43f

Browse files
[pre-commit.ci] pre-commit autoupdate (ipython#841)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <[email protected]>
1 parent 5cbf807 commit aa6e43f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/python-jsonschema/check-jsonschema
22-
rev: 0.21.0
22+
rev: 0.22.0
2323
hooks:
2424
- id: check-github-workflows
2525

@@ -29,12 +29,12 @@ repos:
2929
- id: mdformat
3030

3131
- repo: https://github.com/psf/black
32-
rev: 23.1.0
32+
rev: 23.3.0
3333
hooks:
3434
- id: black
3535

3636
- repo: https://github.com/charliermarsh/ruff-pre-commit
37-
rev: v0.0.254
37+
rev: v0.0.260
3838
hooks:
3939
- id: ruff
4040
args: ["--fix"]

pyproject.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies = ["mypy>=0.990"]
5757
test = "mypy --install-types --non-interactive {args:.}"
5858

5959
[tool.hatch.envs.lint]
60-
dependencies = ["black==23.1.0", "mdformat>0.7", "ruff==0.0.254"]
60+
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.260"]
6161
detached = true
6262
[tool.hatch.envs.lint.scripts]
6363
style = [
@@ -201,9 +201,12 @@ unfixable = [
201201
# B007 Loop control variable `i` not used within the loop body.
202202
# N802 Function name `assertIn` should be lowercase
203203
# F841 Local variable `t` is assigned to but never used
204-
"traitlets/tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "F841"]
204+
# B018 Found useless expression
205+
# S301 `pickle` and modules that wrap...
206+
"traitlets/tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "F841",
207+
"B018", "S301"]
205208
# B003 Assigning to os.environ doesn't clear the environment
206-
"traitlets/config/tests/*" = ["B003"]
209+
"traitlets/config/tests/*" = ["B003", "B018", "S301"]
207210
# F401 `_version.__version__` imported but unused
208211
# F403 `from .traitlets import *` used; unable to detect undefined names
209212
"traitlets/*__init__.py" = ["F401", "F403"]

0 commit comments

Comments
 (0)