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