Skip to content

Commit

Permalink
Clean up ruff config (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Nov 9, 2023
1 parent d7a113c commit bb9f350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.1.5
hooks:
- id: ruff
types_or: [python, jupyter]
args: ["--fix", "--show-fixes"]
- id: ruff-format
types_or: [python, jupyter]

- repo: https://github.com/scientific-python/cookie
rev: "2023.10.27"
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ test = "pre-commit run --all-files --hook-stage manual mypy"
dependencies = ["pre-commit"]
detached = true
[tool.hatch.envs.lint.scripts]
build = ["pre-commit run --all-files ruff"]
build = [
"pre-commit run --all-files ruff",
"pre-commit run --all-files ruff-format"
]

[tool.mypy]
files = "ipykernel"
Expand Down Expand Up @@ -205,7 +208,6 @@ omit = [
]

[tool.ruff]
target-version = "py38"
line-length = 100

[tool.ruff.lint]
Expand Down

0 comments on commit bb9f350

Please sign in to comment.