Skip to content

Commit cdcf3ef

Browse files
Perf improvments (#3070)
1 parent b786261 commit cdcf3ef

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@azure-tools/typespec-python"
5+
---
6+
7+
Improve emitter performance by updating black plugin implementation.

packages/typespec-python/scripts/install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def main():
4141
venv_context = env_builder.context
4242

4343
python_run(venv_context, "pip", ["install", "-U", "pip"])
44+
python_run(venv_context, "pip", ["install", "-U", "black"])
4445

4546

4647
if __name__ == "__main__":

packages/typespec-python/scripts/run_tsp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import venv
88
import logging
99
from pathlib import Path
10-
from pygen import preprocess, codegen, black
10+
from pygen import preprocess, codegen
1111
from pygen.utils import parse_args
1212

1313
_ROOT_DIR = Path(__file__).parent.parent
@@ -38,4 +38,3 @@
3838
args, unknown_args = parse_args()
3939
preprocess.PreProcessPlugin(output_folder=args.output_folder, cadl_file=args.cadl_file, **unknown_args).process()
4040
codegen.CodeGenerator(output_folder=args.output_folder, cadl_file=args.cadl_file, **unknown_args).process()
41-
black.BlackScriptPlugin(output_folder=args.output_folder, **unknown_args).process()

0 commit comments

Comments
 (0)