Skip to content

Commit 2ce4de3

Browse files
committed
Async: Remove code formatting from generator
1 parent 2a8c256 commit 2ce4de3

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ omit = [
2121
[tool.ruff]
2222
line-length = 120
2323
extend-exclude = [
24-
"grafana_client/elements/__init__.py",
25-
"grafana_client/elements/_async/__init__.py",
2624
]
2725

2826
[tool.ruff.lint]

script/generate_async.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
import os
2222
import re
23-
import shutil
24-
import subprocess
2523
import sys
2624
from pathlib import Path
2725
from tempfile import TemporaryDirectory
@@ -166,12 +164,6 @@ def process(source: Path, target: Path):
166164
with Path.open(target / "__init__.py", "w") as fp:
167165
fp.write("\n".join(top_level_content_patch) + "\n")
168166

169-
# Run Ruff for code formatting, providing the same configuration as the project.
170-
shutil.copy(PYPROJECT_TOML, f"{target}")
171-
subprocess.call(["ruff", "format", target])
172-
subprocess.call(["ruff", "check", "--fix", target])
173-
Path(f"{target}/pyproject.toml").unlink()
174-
175167

176168
def msg(text: str):
177169
"""

0 commit comments

Comments
 (0)