From b9747191431bfb9a74013a4c26249fc9085cfa52 Mon Sep 17 00:00:00 2001 From: Yoann Schneider <yschneider@teklia.com> Date: Fri, 12 Apr 2024 18:33:03 +0200 Subject: [PATCH] Use ruff for flake8, remove unnecessary flake8-copyright --- .pre-commit-config.yaml | 8 -------- ruff.toml | 11 ++++++++++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1da5de97e..ab231dc03c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,14 +3,6 @@ repos: rev: v5.10.1 hooks: - id: isort - - repo: https://github.com/pycqa/flake8 - rev: 3.9.2 - hooks: - - id: flake8 - additional_dependencies: - - 'flake8-copyright==0.2.2' - - 'flake8-debugger==3.1.0' - - 'flake8-quotes==3.3.2' - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.3.7 diff --git a/ruff.toml b/ruff.toml index 622b1a91e3..6eac8a6a32 100644 --- a/ruff.toml +++ b/ruff.toml @@ -5,8 +5,17 @@ line-length = 120 quote-style = "double" [lint] -select = ["Q0", "F", "W", "E", +select = [ + # flake8-quotes + "Q", + # pyflakes + "F", + # pycodestyle + "W", + "E", # request-without-timeout "S113", + # flake8-debugger + "T10", ] ignore = ["E501"] -- GitLab