Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #33

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading