@@ -75,8 +75,8 @@ packages = ["scipy-stubs"]
75
75
exclude = [" CODE_OF_CONDUCT.md" , " README.md" , " SECURITY.md" , " uv.lock" ]
76
76
force-include = {".mypyignore" = " .mypyignore" } # for scipy-stubs-feedstock
77
77
78
- [tool .poe .tasks ]
79
- clean = """
78
+ [tool .poe .tasks . clean ]
79
+ cmd = """
80
80
rm -rf
81
81
codegen/*.pyc
82
82
codegen/__pycache__
@@ -91,51 +91,10 @@ rm -rf
91
91
./**/.ruff_cache
92
92
./**/.tox
93
93
"""
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" }]
135
94
136
95
[tool .poe .tasks .stubtest ]
137
96
cmd = """
138
- uv run --frozen -- no-editable --isolated --refresh-package=scipy-stubs
97
+ uv run --no-editable
139
98
stubtest
140
99
--mypy-config-file=pyproject.toml
141
100
--allowlist=.mypyignore
@@ -145,7 +104,15 @@ uv run --frozen --no-editable --isolated --refresh-package=scipy-stubs
145
104
args = [{name = " modules" , positional = true , multiple = true , default = " scipy" }]
146
105
147
106
[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
+ """
149
116
args = [
150
117
{name = " name" , positional = true , multiple = false , required = true },
151
118
{name = " path" , positional = true , multiple = false , default = " scipy-stubs" },
0 commit comments