Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: prefix-dev/setup-pixi@194d461b21b6c5717c722ffc597fa91ed2ff29fa # v0.9.1
with:
pixi-version: v0.50.2
pixi-version: v0.58.0
cache: true
environments: lint

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:

- uses: prefix-dev/setup-pixi@194d461b21b6c5717c722ffc597fa91ed2ff29fa # v0.9.1
with:
pixi-version: v0.50.2
pixi-version: v0.58.0
cache: true
environments: ${{ matrix.environment }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: prefix-dev/setup-pixi@194d461b21b6c5717c722ffc597fa91ed2ff29fa # v0.9.1
with:
pixi-version: v0.50.2
pixi-version: v0.58.0
cache: true
environments: docs

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"array-api": ("https://data-apis.org/array-api/draft", None),
"dask": ("https://docs.dask.org/en/stable", None),
"numpy": ("https://numpy.org/doc/stable", None),
"jax": ("https://jax.readthedocs.io/en/latest", None),
"jax": ("https://docs.jax.dev/en/latest", None),
}

nitpick_ignore = [
Expand Down
23 changes: 10 additions & 13 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
lefthook: pixi run --no-progress --environment=lint lefthook

templates:
run: run --quiet --no-progress --environment=lint

colors: true

output:
Expand All @@ -22,35 +19,35 @@ pre-commit:
- name: dprint
glob: "*.{json,jsonc,md,toml,yaml,yml}"
stage_fixed: true
run: pixi {run} dprint
run: dprint fmt
- name: ruff
glob: "*.{py,pyi}"
stage_fixed: true
group:
piped: true
jobs:
- name: ruff check
run: pixi {run} ruff-check {staged_files}
run: ruff check --fix {staged_files}
- name: ruff format
run: pixi {run} ruff-format {staged_files}
run: ruff format {staged_files}
- name: pyright
glob: "*.{py,pyi}"
run: pixi {run} pyright
run: basedpyright
- name: mypy
glob: "*.{py,pyi}"
run: pixi {run} mypy
run: mypy
- name: typos
stage_fixed: true
run: pixi {run} typos
run: typos --write-changes --force-exclude
- name: actionlint
run: pixi {run} actionlint
run: actionlint
- name: blacken-docs
glob: "*.md"
stage_fixed: true
run: pixi {run} blacken-docs {staged_files}
run: blacken-docs {staged_files}
- name: validate-pyproject
glob: "pyproject.toml"
run: pixi {run} validate-pyproject
run: validate-pyproject pyproject.toml
- name: numpydoc
glob: "*.py"
run: pixi {run} numpydoc {staged_files}
run: numpydoc lint {staged_files}
6,207 changes: 3,124 additions & 3,083 deletions pixi.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ license.file = "LICENSE"
requires-python = ">=3.10"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down Expand Up @@ -44,7 +43,7 @@ exclude = ["codecov.yml", "pixi.lock", "RELEASING.md", "renovate.json"]

#  Pixi

[tool.pixi.project]
[tool.pixi.workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]

Expand Down
102 changes: 45 additions & 57 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigests",
":automergeMinor"
],
"extends": ["config:recommended", "helpers:pinGitHubActionDigests", ":automergeMinor"],
"dependencyDashboardTitle": "META: Dependency Dashboard",
"commitMessagePrefix": "deps:",
"labels": ["dependencies"],
Expand All @@ -13,56 +9,48 @@
"pixi": ">=v0.45.0"
},
"minimumReleaseAge": "14 days",
"packageRules": [
{
"description": "Do not bump deps pinned with '~=' or '='.",
"matchManagers": ["pixi"],
"matchCurrentValue": "/^~?=/",
"enabled": false
},
{
"description": "Do not bump requires-python.",
"matchManagers": ["pep621"],
"matchPackageNames": ["python"],
"enabled": false
},
{
"description": "Schedule automerged GHA updates for the 15th of each month.",
"matchManagers": ["github-actions"],
"groupName": "gha",
"schedule": ["* * 15 * *"],
"automerge": true
},
{
"description": "Block PRs for updates blocked on dropping Python 3.10.",
"matchManagers": ["pixi"],
"matchUpdateTypes": ["major", "minor"],
"matchPackageNames": [
"numpy",
"jax",
"jaxlib",
"sphinx",
"ipython",
"sphinx-autodoc-typehints",
"pytorch"
],
"enabled": false
},
{
"description": "Group Dask packages.",
"matchPackageNames": ["dask", "dask-core"],
"groupName": "dask"
},
{
"description": "Group JAX packages.",
"matchPackageNames": ["jax", "jaxlib"],
"groupName": "jax"
},
{
"description": "Schedule hypothesis monthly as releases are frequent.",
"matchManagers": ["pixi"],
"matchPackageNames": ["hypothesis"],
"schedule": ["* * 10 * *"]
}
]
"packageRules": [{
"description": "Do not bump deps pinned with '~=' or '='.",
"matchManagers": ["pixi"],
"matchCurrentValue": "/^~?=/",
"enabled": false
}, {
"description": "Do not bump requires-python.",
"matchManagers": ["pep621"],
"matchPackageNames": ["python"],
"enabled": false
}, {
"description": "Schedule automerged GHA updates for the 15th of each month.",
"matchManagers": ["github-actions"],
"groupName": "gha",
"schedule": ["* * 15 * *"],
"automerge": true
}, {
"description": "Block PRs for updates blocked on dropping Python 3.10.",
"matchManagers": ["pixi"],
"matchUpdateTypes": ["major", "minor"],
"matchPackageNames": [
"numpy",
"jax",
"jaxlib",
"sphinx",
"ipython",
"sphinx-autodoc-typehints",
"pytorch"
],
"enabled": false
}, {
"description": "Group Dask packages.",
"matchPackageNames": ["dask", "dask-core"],
"groupName": "dask"
}, {
"description": "Group JAX packages.",
"matchPackageNames": ["jax", "jaxlib"],
"groupName": "jax"
}, {
"description": "Schedule hypothesis monthly as releases are frequent.",
"matchManagers": ["pixi"],
"matchPackageNames": ["hypothesis"],
"schedule": ["* * 10 * *"]
}]
}