runtests.py: point pycln to pyproject.toml for config settings (#9202)

An oversight in #9197 that was noticed by @Avasam post-merge (thanks!)
This commit is contained in:
Alex Waygood
2022-11-15 17:40:22 +00:00
committed by GitHub
parent 3fec65927c
commit beb19fea4c

View File

@@ -58,7 +58,7 @@ def main() -> None:
# Run formatters first. Order matters.
print("\nRunning pycln...")
subprocess.run([sys.executable, "-m", "pycln", path, "--all"])
subprocess.run([sys.executable, "-m", "pycln", path, "--config=pyproject.toml"])
print("\nRunning isort...")
subprocess.run([sys.executable, "-m", "isort", path])
print("\nRunning Black...")