Skip to content

Commit cce510e

Browse files
committed
🔨 remove superseded poe commands
1 parent f72da85 commit cce510e

File tree

1 file changed

+12
-45
lines changed

1 file changed

+12
-45
lines changed

‎pyproject.toml

Lines changed: 12 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ packages = ["scipy-stubs"]
7575
exclude = ["CODE_OF_CONDUCT.md", "README.md", "SECURITY.md", "uv.lock"]
7676
force-include = {".mypyignore" = ".mypyignore"} # for scipy-stubs-feedstock
7777

78-
[tool.poe.tasks]
79-
clean = """
78+
[tool.poe.tasks.clean]
79+
cmd = """
8080
rm -rf
8181
codegen/*.pyc
8282
codegen/__pycache__
@@ -91,51 +91,10 @@ rm -rf
9191
./**/.ruff_cache
9292
./**/.tox
9393
"""
94-
mdformat = """
95-
mdformat
96-
CODE_OF_CONDUCT.md
97-
CONTRIBUTING.md
98-
README.md
99-
SECURITY.md
100-
tests/README.md
101-
codegen/README.md
102-
"""
103-
# TODO: Replace with `mdformat .` once `--exclude` can be used on `python<3.13`, see
104-
# https://github.com/hukkin/mdformat/issues/489
105-
_ruff_format = "ruff format"
106-
_ruff_check = "ruff check --show-fixes"
107-
repo-review = "repo-review ."
108-
format = ["mdformat", "_ruff_format"]
109-
ruff = ["_ruff_format", "_ruff_check"]
110-
check = ["mdformat --check", "repo-review", "ruff"]
111-
lint = ["check", "format"]
112-
types = "basedpyright codegen scripts"
113-
114-
_test_bpr = "basedpyright tests"
115-
_test_mypy = """
116-
uv run --frozen --no-editable --isolated --refresh-package=scipy-stubs
117-
mypy
118-
--config-file=pyproject.toml
119-
tests
120-
"""
121-
typetest = ["_test_bpr", "_test_mypy"]
122-
123-
[tool.poe.tasks.pyright]
124-
cmd = "basedpyright $path"
125-
args = [{name = "path", positional = true, multiple = true, default = "scipy-stubs codegen"}]
126-
127-
[tool.poe.tasks.mypy]
128-
cmd = """
129-
uv run --frozen --no-editable --isolated --refresh-package=scipy-stubs
130-
mypy
131-
--config-file=pyproject.toml
132-
$path
133-
"""
134-
args = [{name = "path", positional = true, multiple = true, default = "scipy-stubs codegen"}]
13594

13695
[tool.poe.tasks.stubtest]
13796
cmd = """
138-
uv run --frozen --no-editable --isolated --refresh-package=scipy-stubs
97+
uv run --no-editable
13998
stubtest
14099
--mypy-config-file=pyproject.toml
141100
--allowlist=.mypyignore
@@ -145,7 +104,15 @@ uv run --frozen --no-editable --isolated --refresh-package=scipy-stubs
145104
args = [{name = "modules", positional = true, multiple = true, default = "scipy"}]
146105

147106
[tool.poe.tasks.codemod]
148-
cmd = "python -m libcst.tool codemod -x --hide-progress --include-stubs codegen.mods.$name $path"
107+
cmd = """
108+
python -m libcst.tool
109+
codemod
110+
-x
111+
--hide-progress
112+
--include-stubs
113+
codegen.mods.$name
114+
$path
115+
"""
149116
args = [
150117
{name = "name", positional = true, multiple = false, required = true},
151118
{name = "path", positional = true, multiple = false, default = "scipy-stubs"},

0 commit comments

Comments
 (0)