From 65ad953497a302e9d91d382bc313b329dd2dbdc9 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 24 Jan 2023 14:57:08 +0200 Subject: [PATCH] Update Ruff to 0.0.231, enable D401 (#86520) --- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 - requirements_test_pre_commit.txt | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ce1f4e8d635..83329d8dfcf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.230 + rev: v0.0.231 hooks: - id: ruff args: diff --git a/pyproject.toml b/pyproject.toml index df98a7bec1c..c4542921155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -247,7 +247,6 @@ ignore = [ "D203", # 1 blank line required before class docstring "D212", # Multi-line docstring summary should start at the first line "D213", # Multi-line docstring summary should start at the second line - "D401", # TODO: Enable when https://github.com/charliermarsh/ruff/pull/2071 is released "D404", # First word of the docstring should not be This "D406", # Section name should end with a newline "D407", # Section name underlining diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index 0ac9fbb12c7..34b68588285 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -14,5 +14,5 @@ pycodestyle==2.10.0 pydocstyle==6.2.3 pyflakes==3.0.1 pyupgrade==3.3.1 -ruff==0.0.230 +ruff==0.0.231 yamllint==1.28.0