Skip to content

Commit 9da13bf

Browse files
Merge pull request #191 from neutrinoceros/pre-commit-autoupdate
MNT: manual upgrade for pre-commit
2 parents 3b52524 + a057b45 commit 9da13bf

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
# files: README.md
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.1.9
27+
rev: v0.3.0
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ exclude_lines = [
7777
"-> ['\"]?NoReturn['\"]?:",
7878
]
7979

80-
[tool.ruff]
80+
[tool.ruff.lint]
8181
ignore = ["E501", "D101"]
8282
select = [
8383
"E",
@@ -92,14 +92,14 @@ select = [
9292
"NPY", # numpy specific rules
9393
]
9494

95-
[tool.ruff.isort]
95+
[tool.ruff.lint.isort]
9696
combine-as-imports = true
9797
known-first-party = ["gpgi"]
9898

99-
[tool.ruff.pydocstyle]
99+
[tool.ruff.lint.pydocstyle]
100100
convention = "numpy"
101101

102-
[tool.ruff.per-file-ignores]
102+
[tool.ruff.lint.per-file-ignores]
103103
"tests/**" = ["D"]
104104
"setup.py" = ["D"]
105105
"_backports.py" = ["D"]

src/gpgi/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""gpgi: Fast particle deposition at post-processing time."""
2+
23
from __future__ import annotations
34

45
from typing import Any

src/gpgi/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
r"""Define the core data structures of the library: Grid, ParticleSet, and Dataset."""
2+
23
from __future__ import annotations
34

45
import enum
@@ -125,8 +126,7 @@ def __init__(self) -> None:
125126
self._validate()
126127

127128
@abstractmethod
128-
def _validate(self) -> None:
129-
...
129+
def _validate(self) -> None: ...
130130

131131
def _validate_fieldmaps(
132132
self,

0 commit comments

Comments
 (0)