From b77279e366c05980e6d7e657e572f97990869a3c Mon Sep 17 00:00:00 2001
From: Bastien Abadie <bastien@nextcairn.com>
Date: Tue, 9 Jan 2024 09:41:11 +0100
Subject: [PATCH] Run ruff with double quote checks only

---
 .pre-commit-config.yaml | 5 +++++
 ruff.toml               | 9 +++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 ruff.toml

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ee35312179..3846840f9b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,6 +11,11 @@ repos:
           - 'flake8-copyright==0.2.2'
           - 'flake8-debugger==3.1.0'
           - 'flake8-quotes==3.3.2'
+  - repo: https://github.com/astral-sh/ruff-pre-commit
+    rev: v0.1.11
+    hooks:
+      - id: ruff
+        args: [--fix]
   - repo: https://github.com/pre-commit/pre-commit-hooks
     rev: v4.1.0
     hooks:
diff --git a/ruff.toml b/ruff.toml
new file mode 100644
index 0000000000..19c8e651c0
--- /dev/null
+++ b/ruff.toml
@@ -0,0 +1,9 @@
+line-length = 120
+
+[format]
+# Like Black, use double quotes for strings.
+quote-style = "double"
+
+[lint]
+select = ["Q0"]
+ignore = ["F", "E"]
-- 
GitLab