From 215089743b0c7277715e20e90be58f5e97a61ee3 Mon Sep 17 00:00:00 2001 From: fstagni Date: Tue, 15 Aug 2023 16:18:36 +0200 Subject: [PATCH] sweep: #7171 fix: fixes for release notes --- .pre-commit-config.yaml | 4 ++++ pyproject.toml | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63ead697df9..b9d4a189129 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,10 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + exclude: | + (?x)^( + src/DIRAC/Core/Security/test/certs/ca/ca.key.pem + )$ - id: check-yaml - id: check-added-large-files diff --git a/pyproject.toml b/pyproject.toml index 05aa84a5a6c..113be701cff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,8 +10,10 @@ git_describe_command = "git describe --dirty --tags --long --match *[0-9].[0-9]* [tool.black] line-length = 120 -target-version = ['py39'] +target-version = ['py311'] +[tool.isort] +profile = "black" [tool.mypy] allow_redefinition = true @@ -28,6 +30,12 @@ exclude = [ '/tests/' ] + +[tool.ruff] +select = ["E", "F", "B", "I", "PLE"] +ignore = ["B905", "B008", "B006"] +line-length = 120 + [tool.pylint.basic] # We mostly have CamelCase, with a few differences. @@ -81,7 +89,7 @@ signature-mutators = [] [tool.pylint.format] # Maximum number of characters on a single line. -max-line-length = 130 +max-line-length = 120 [tool.pylint."messages control"] disable = ["R0903","I0011","c-extension-no-member"]