We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107064c commit b709211Copy full SHA for b709211
helpers/missing_ruff.py
@@ -8,6 +8,7 @@
8
import argparse
9
import json
10
import subprocess
11
+import sys
12
from collections.abc import Iterator
13
from pathlib import Path
14
@@ -43,9 +44,14 @@ def process_dir(path: Path) -> None:
43
44
pyproject = tomllib.load(f)
45
46
match pyproject:
- case {"tool": {"ruff": {"lint": {"extend-select": selection}}}}:
47
+ case {
48
+ "tool": {
49
+ "ruff": {"lint": {"extend-select": selection} | {"select": selection}}
50
+ }
51
+ }:
52
selected = frozenset(selection)
53
case _:
54
+ print("[red]Rules not found", file=sys.stderr)
55
raise SystemExit(1)
56
57
linter_txt = subprocess.run(
0 commit comments