From 9909f6dbeed5dad4482b898faaf02b16f15e0f43 Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Paredes Date: Wed, 12 Jun 2024 13:31:43 +0200 Subject: [PATCH] More fine tuning of ruff and pre-commit --- .pre-commit-config.yaml | 2 -- pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10c71ef..cd2eb8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,8 +52,6 @@ repos: - id: debug-statements - id: end-of-file-fixer - id: mixed-line-ending - - id: name-tests-test - args: [--pytest-test-first] - id: requirements-txt-fixer - id: trailing-whitespace diff --git a/pyproject.toml b/pyproject.toml index 477ef93..d0e62ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -170,6 +170,7 @@ ignore = [ "E501", # [line-too-long] "TCH003", # [typing-only-standard-library-import] "TD003", # [missing-todo-link] + "TRY003", # [raise-vanilla-args] # TODO(egparedes): reevaluate if it should be activated "UP038", # [non-pep604-isinstance] ] task-tags = ["TODO"] @@ -235,3 +236,6 @@ max-doc-length = 88 [tool.ruff.lint.pydocstyle] convention = "google" ignore-decorators = ["typing.overload"] + +[tool.ruff.lint.pylint] +max-positional-args = 6