From ee30122c947a24b63c44a909bdb722dc9c558bd7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:31:18 +0200 Subject: [PATCH] chore(pre-commit.ci): pre-commit autoupdate (#273) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.4 → v0.5.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.4...v0.5.7) - [github.com/commitizen-tools/commitizen: v3.28.0 → v3.29.0](https://github.com/commitizen-tools/commitizen/compare/v3.28.0...v3.29.0) - [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.16.0...v3.17.0) ## Summary by CodeRabbit - **New Features** - Updated versions of several pre-commit tools, potentially enhancing performance and introducing new features. - Added a new linting rule to ignore the absence of return statements in docstrings. - **Bug Fixes** - Incremented revisions may include fixes that improve overall tool reliability. --------- Co-authored-by: Lucas Mindêllo de Andrade --- .pre-commit-config.yaml | 6 +++--- ruff.toml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd040734..0750630a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,14 +16,14 @@ repos: - id: no-commit-to-branch args: ["--branch", "main"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.4 + rev: v0.5.7 hooks: - id: ruff args: - --fix - id: ruff-format - repo: https://github.com/commitizen-tools/commitizen - rev: v3.28.0 + rev: v3.29.0 hooks: - id: commitizen stages: [commit-msg] @@ -41,7 +41,7 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade - rev: v3.16.0 + rev: v3.17.0 hooks: - id: pyupgrade args: [--py37-plus] diff --git a/ruff.toml b/ruff.toml index 5f45c6f5..b75dd94a 100644 --- a/ruff.toml +++ b/ruff.toml @@ -11,6 +11,8 @@ lint.ignore = [ "CPY001", # Missing copyright notice at top of file "D203", # 1 blank line required before class docstring "D213", # Multi-line docstring summary should start at the second line + "DOC201", # Docstring missing returns + "DOC501", # Docstring missing raises "EM101", # Exception must not use a string literal, assign to variable first "EM102", # Exception must not use an f-string literal, assign to variable first "FBT001", # Boolean-typed positional argument in function definition