Skip to content

Commit 0f87814

Browse files
committed
Use explicit pytest command for doctests, change module name for pre-commit
1 parent 9a44521 commit 0f87814

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/code-checks.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,7 @@ jobs:
4848
-Csetup-args="--werror"
4949
5050
- name: Run doctests
51-
env:
52-
# Avoids NumPy scalar reprs in docstrings.
53-
PANDAS_FUTURE_PYTHON_SCALARS: "1"
54-
run: |
55-
pixi run \
56-
--environment doctests \
57-
ci-test-pandas \
58-
'--doctest-modules --doctest-cython --ignore=pandas/tests' \
59-
0 \
60-
pandas
51+
run: pixi run --environment doctests ci-doctests
6152

6253
- name: Run scripts tests
6354
run: pixi run --environment doctests ci-scripts-tests

pixi.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,19 @@ cmd = [
212212
"{{ pytest_target }}",
213213
]
214214

215+
[tasks.ci-doctests]
216+
# Avoids NumPy scalar reprs in docstrings.
217+
env = { PANDAS_FUTURE_PYTHON_SCALARS = "1" }
218+
cmd = [
219+
"python",
220+
"-m",
221+
"pytest",
222+
"--doctest-modules",
223+
"--doctest-cython",
224+
"--ignore=pandas/tests",
225+
"pandas",
226+
]
227+
215228
[tasks.ci-check-import]
216229
cmd = [
217230
"python",
@@ -224,7 +237,7 @@ cmd = [
224237
cmd = [
225238
"python",
226239
"-m",
227-
"pre-commit",
240+
"pre_commit",
228241
"run",
229242
"--verbose",
230243
"--hook-stage",

0 commit comments

Comments
 (0)