diff --git a/Makefile b/Makefile index c7375405..ef7783bc 100644 --- a/Makefile +++ b/Makefile @@ -157,7 +157,7 @@ black: ## Python files linting (via black) @git ls-files '*.py' | xargs $(PYTHON) -m black --check --safe ruff: ## Run ruff linter. - @git ls-files '*.py' | xargs $(PYTHON) -m ruff check --no-cache + @git ls-files '*.py' | xargs $(PYTHON) -m ruff check --no-cache --output-format=concise _pylint: ## Python pylint (not mandatory, just run it from time to time) @git ls-files '*.py' | xargs $(PYTHON) -m pylint --rcfile=pyproject.toml --jobs=${NUM_WORKERS} diff --git a/pyproject.toml b/pyproject.toml index 71af2795..834b1c20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,9 @@ ignore = [ "C90", # mccabe (function `X` is too complex) "COM812", # Trailing comma missing "D", # pydocstyle + "DOC201", # `return` is not documented in docstring + "DOC402", # `yield` is not documented in docstring + "DOC501", # Raised exception `X` missing from docstring "DTZ", # flake8-datetimez "E203", # [*] Whitespace before ':' (clashes with black) "EM", # flake8-errmsg @@ -73,6 +76,7 @@ ignore = [ "TRY003", # Avoid specifying long messages outside the exception class "TRY300", # Consider moving this statement to an `else` block "TRY301", # Abstract `raise` to an inner function + "UP031", # Use format specifiers instead of percent format ] [tool.ruff.lint.per-file-ignores]