Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit 500f7ac

Browse files
[pre-commit.ci] pre-commit autoupdate (#79)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.12.7](astral-sh/ruff-pre-commit@v0.12.2...v0.12.7) * fix: remove defaults from testing * style: pre the commit * test: update xgboost tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: beckermr <becker.mr@gmail.com>
1 parent b5905e0 commit 500f7ac

File tree

46 files changed

+40
-1158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+40
-1158
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- --py36-plus
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
2525
# Ruff version.
26-
rev: v0.12.2
26+
rev: v0.12.7
2727
hooks:
2828
# Run the linter.
2929
- id: ruff

conda_forge_feedstock_check_solvable/check_solvable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _is_recipe_solvable_on_platform(
218218
# channel_sources might be part of some zip_key
219219
channel_sources.extend([c.strip() for c in source.split(",")])
220220
else:
221-
channel_sources = ["conda-forge", "defaults"]
221+
channel_sources = ["conda-forge"]
222222

223223
if "msys2" not in channel_sources and platform.startswith("win"):
224224
channel_sources.append("msys2")

tests/test_check_solvable.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
VERB = 1
1818

1919

20+
def clone_and_checkout_repo(base_path: pathlib.Path, origin_url: str, ref: str):
21+
subprocess.run(
22+
f"cd {base_path} && git clone {origin_url} repo",
23+
shell=True,
24+
)
25+
return str(base_path / "repo")
26+
27+
2028
@flaky
2129
def test_is_recipe_solvable_ok(feedstock_dir, solver):
2230
recipe_file = os.path.join(feedstock_dir, "recipe", "meta.yaml")
@@ -150,8 +158,13 @@ def test_r_base_cross_solvable(solver):
150158

151159

152160
@flaky
153-
def test_xgboost_solvable(solver):
154-
feedstock_dir = os.path.join(os.path.dirname(__file__), "xgboost-feedstock")
161+
def test_xgboost_solvable(tmp_path, solver):
162+
feedstock_dir = clone_and_checkout_repo(
163+
tmp_path,
164+
"https://github.com/conda-forge/arrow-cpp-feedstock",
165+
ref="main",
166+
)
167+
155168
solvable, errors, _ = is_recipe_solvable(
156169
feedstock_dir,
157170
solver=solver,
@@ -215,14 +228,6 @@ def test_guiqwt_solvable(tmp_path, solver):
215228
assert solvable, pprint.pformat(errors)
216229

217230

218-
def clone_and_checkout_repo(base_path: pathlib.Path, origin_url: str, ref: str):
219-
subprocess.run(
220-
f"cd {base_path} && git clone {origin_url} repo",
221-
shell=True,
222-
)
223-
return str(base_path / "repo")
224-
225-
226231
@flaky
227232
def test_arrow_solvable(tmp_path, solver):
228233
feedstock_dir = clone_and_checkout_repo(

tests/test_feedstock/.ci_support/linux_ppc64le_python3.6.____73_pypy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

tests/test_feedstock/.ci_support/linux_ppc64le_python3.6.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

tests/test_feedstock/.ci_support/linux_ppc64le_python3.7.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

tests/test_feedstock/.ci_support/linux_ppc64le_python3.8.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

tests/test_feedstock/.ci_support/linux_python3.6.____73_pypy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

tests/test_feedstock/.ci_support/linux_python3.6.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

tests/test_feedstock/.ci_support/linux_python3.7.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channel_sources:
2-
- conda-forge,defaults
2+
- conda-forge
33
channel_targets:
44
- conda-forge main
55
docker_image:

0 commit comments

Comments
 (0)