]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add baseline ruff configuration
authorAarni Koskela <akx@iki.fi>
Wed, 18 Jan 2023 17:52:05 +0000 (19:52 +0200)
committerAarni Koskela <akx@iki.fi>
Wed, 18 Jan 2023 19:07:51 +0000 (21:07 +0200)
.pre-commit-config.yaml
pyproject.toml [new file with mode: 0644]

index b61dac46b6d979aef61d0e292d28085a571f96c9..4c3eb9c302e43461ee69c4bd048ccb307080ab3b 100644 (file)
@@ -1,4 +1,11 @@
 repos:
+  - repo: https://github.com/charliermarsh/ruff-pre-commit
+    rev: v0.0.224
+    hooks:
+      - id: ruff
+        args:
+          - --fix
+          - --force-exclude
   - repo: https://github.com/pre-commit/pre-commit-hooks
     rev: v4.4.0
     hooks:
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644 (file)
index 0000000..977d84b
--- /dev/null
@@ -0,0 +1,11 @@
+[tool.ruff]
+target-version = "py37"
+select = []
+ignore = [
+    "C901",  # Complexity
+    "E501",  # Line length
+    "E741",  # Ambiguous variable name
+]
+extend-exclude = [
+    "tests/messages/data",
+]