Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philipp A. <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and flying-sheep authored Aug 22, 2024
1 parent 4d095ca commit 7b094c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ features = ["test"]
[tool.hatch.envs.test.scripts]
run = "pytest -vv {args}"

[tool.ruff]
[tool.ruff.lint]
select = ["ALL"]
extend-ignore = [
"COM812", "ISC001", # Incompatible with formatter
Expand All @@ -35,7 +35,7 @@ extend-ignore = [
"TD002", # No need for TODO authors
]
allowed-confusables = ["", "×"]
[tool.ruff.extend-per-file-ignores]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"D100", # No module docstrings necessary for tests
"D103", # No function docstrings necessary for tests
Expand Down
4 changes: 2 additions & 2 deletions tests/data/notebooks/example-py.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"import random\n",
"from pathlib import Path\n",
"\n",
"r = random.randint(0, 10)\n",
"Path(\"int.txt\").write_text(str(r))\n"
"r = random.randint(0, 10) # noqa: S311\n",
"Path(\"int.txt\").write_text(str(r))"
]
}
],
Expand Down
1 change: 1 addition & 0 deletions tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pytest
from nbclient.exceptions import CellExecutionError
from nbformat import v4

from prelude_runner.cli import load_preludes, main
from prelude_runner.core import Preludes, execute
from prelude_runner.types import CodeCell, Notebook, Stream
Expand Down

0 comments on commit 7b094c1

Please sign in to comment.