diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e262070..70891ab3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: # Python - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.3 + rev: v0.2.0 hooks: - id: ruff args: ["--fix"] diff --git a/pyproject.toml b/pyproject.toml index 32758449..8fe408eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,7 +71,7 @@ write_to = "dpdata/_version.py" [tool.isort] profile = "black" -[tool.ruff] +[tool.ruff.lint] select = [ "E", # errors "F", # pyflakes @@ -101,5 +101,5 @@ ignore = [ ] ignore-init-module-imports = true -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy"