From 77afa7f3dd9040314be0423b62056eb88bb2e37e Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 11 Sep 2024 14:20:58 -0500 Subject: [PATCH] update pre-commit hook versions, use new ruff config format --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 19 ++++++++++++++++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae3a61d..45769dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/rapidsai/dependency-file-generator - rev: v1.13.11 + rev: v1.14.0 hooks: - id: rapids-dependency-file-generator args: ["--clean"] @@ -21,7 +21,7 @@ repos: hooks: - id: codespell - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.8 + rev: v0.6.4 hooks: - id: ruff args: ["--fix"] @@ -32,7 +32,7 @@ repos: - id: verify-copyright args: [--fix, --main-branch=main] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.10.0' + rev: 'v1.11.2' hooks: - id: mypy args: [ diff --git a/pyproject.toml b/pyproject.toml index 45521c1..6025c36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,19 @@ include = ["rapids_build_backend*"] [tool.mypy] ignore_missing_imports = true -[tool.ruff] -lint.select = ["E", "F", "W", "I", "N", "UP"] -lint.fixable = ["ALL"] +[tool.ruff.lint] +select = [ + # pycodestyle (errors) + "E", + # isort + "I", + # pyflakes + "F", + # pep8-naming + "N", + # pyupgrade + "UP", + # pycodestyle (warnings) + "W", +] +fixable = ["ALL"]