77 generate-meta :
88 cmds :
99 - git checkout pegen/grammar_parser.py
10- - python3 -m pegen pegen/metagrammar.gram -o pegen/grammar_parser.py
10+ - uv run python3 -m pegen pegen/metagrammar.gram -o pegen/grammar_parser.py
1111 - ruff format pegen/grammar_parser.py
1212 generate :
1313 deps :
1414 - dev
1515 cmds :
16- - python3 tasks/generator.py
16+ - uv run python3 tasks/generator.py
1717 - ruff check --fix peg_parser/parser.py
1818 - ruff format peg_parser/parser.py
1919 - scc peg_parser/parser.py --uloc
3232
3333 profile-tasks :
3434 cmds :
35- - python tasks/profile_mem.py | tee -a {{.LOG_FILE}}
36- - python tasks/simple.py | tee -a {{.LOG_FILE}}
35+ - uv run python tasks/profile_mem.py | tee -a {{.LOG_FILE}}
36+ - uv run python tasks/simple.py | tee -a {{.LOG_FILE}}
3737 vars :
3838 LOG_FILE :
3939 sh : echo ".local/logs/xonsh-parser-$(date "+%Y%m%d-%H%M%S").$(git rev-parse --short HEAD).log"
6363 deps :
6464 - generate
6565 cmds :
66- - python -m pytest {{.CLI_ARGS}}
66+ - uv run python -m pytest {{.CLI_ARGS}}
6767 # sources:
6868 # - '**/*.py'
6969
@@ -82,23 +82,23 @@ tasks:
8282
8383 memray :
8484 cmds :
85- - pytest --memray
85+ - uv run pytest --memray
8686 mypy1 :
8787 cmds :
88- - mypy peg_parser
88+ - uv run mypy peg_parser
8989 mypy :
9090 cmds :
9191 - watchexec -e py,toml,gram --clear -- task generate mypy1
9292
9393 build_dep :
9494 cmds :
95- - pip install setuptools_scm wheel
95+ - uv run uv pip install setuptools_scm wheel
9696
9797 mypycify :
9898 deps :
9999 - build_dep
100100 cmds :
101- - env COMPILE_WITH_MYPYC=1 pip install -e . --no-build-isolation
101+ - env COMPILE_WITH_MYPYC=1 uv pip install -e . --no-build-isolation
102102 sources :
103103 - peg_parser/subheader.py
104104 - peg_parser/toke*.py
@@ -107,7 +107,7 @@ tasks:
107107 deps :
108108 - build_dep
109109 cmds :
110- - env COMPILE_WITH_CYTHON=1 pip install -e . --no-build-isolation
110+ - env COMPILE_WITH_CYTHON=1 uv pip install -e . --no-build-isolation
111111 sources :
112112 - peg_parser/*.py
113113 - peg_parser/*.pxd
@@ -126,13 +126,13 @@ tasks:
126126
127127 pytest-bench :
128128 cmds :
129- - pytest tests/benchmarks.py --benchmark-only --benchmark-autosave {{.CLI_ARGS}}
129+ - uv run pytest tests/benchmarks.py --benchmark-only --benchmark-autosave {{.CLI_ARGS}}
130130
131131 bench-lexer :
132132 deps :
133133 - dev
134134 cmds :
135- - pytest tests/bench_lexer.py --benchmark-only --benchmark-autosave {{.CLI_ARGS}}
135+ - uv run pytest tests/bench_lexer.py --benchmark-only --benchmark-autosave {{.CLI_ARGS}}
136136
137137 pytest-bench-plot :
138138 desc : Generate an SVG histogram of all recorded benchmarks
0 commit comments