Skip to content

Commit d91cce3

Browse files
Sricharan Reddy Varrapre-commit-ci[bot]
andauthored
👽️ Nonlocals of a nonlocal??? sure why not (#54)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4390be9 commit d91cce3

File tree

16 files changed

+603
-541
lines changed

16 files changed

+603
-541
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,14 @@ jobs:
2929
- name: Checkout ${{ github.ref }}
3030
uses: actions/checkout@v4
3131

32-
- name: Install uv
32+
- name: Install uv and setup Python
3333
uses: astral-sh/setup-uv@v5
3434
with:
3535
python-version: ${{ matrix.python-version }}
3636
enable-cache: true
3737
cache-dependency-glob: "uv.lock"
3838
github-token: ${{ secrets.GITHUB_TOKEN }}
3939

40-
- name: Set up Python
41-
run: |
42-
uv python install ${{ matrix.python-version }}
43-
44-
- name: Install Dependencies
45-
run: |
46-
uv sync --frozen
47-
4840
- name: Build Package
4941
run: |
5042
uv build

.github/workflows/release.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ jobs:
3535
cache-dependency-glob: "uv.lock"
3636
github-token: ${{ secrets.GITHUB_TOKEN }}
3737

38-
- name: Set up Python
39-
run: |
40-
uv python install ${{ matrix.python-version }}
41-
42-
- name: Install Dependencies
43-
run: |
44-
uv sync --frozen
45-
4638
- name: Build Package
4739
run: |
4840
uv build
@@ -74,7 +66,7 @@ jobs:
7466
path: dist/
7567

7668
- name: Publish distribution 📦 to TestPyPI
77-
uses: pypa/[email protected].3
69+
uses: pypa/[email protected].4
7870
with:
7971
repository-url: https://test.pypi.org/legacy/
8072
verbose: true

.github/workflows/test.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,14 @@ jobs:
3838
- name: Checkout ${{ github.ref }}
3939
uses: actions/checkout@v4
4040

41-
- name: Install uv
41+
- name: Install uv and setup Python
4242
uses: astral-sh/setup-uv@v5
4343
with:
44+
python-version: ${{ matrix.python-version }}
4445
enable-cache: true
4546
cache-dependency-glob: "uv.lock"
4647
github-token: ${{ secrets.GITHUB_TOKEN }}
4748

48-
- name: Set up Python
49-
run: |
50-
uv python install ${{ matrix.python-version }}
51-
5249
- name: Install Dependencies
5350
run: |
5451
uv sync --extra test --frozen
@@ -58,10 +55,10 @@ jobs:
5855
MPLBACKEND: agg
5956
DISPLAY: :42
6057
run: |
61-
uv run pytest -n auto --cov --cov-report=xml -v --color=yes --junitxml=junit.xml
58+
uv run --frozen pytest -n auto --cov --cov-report=xml -v --color=yes --junitxml=junit.xml
6259
6360
- name: Upload coverage to Codecov
64-
uses: codecov/codecov-action@v4
61+
uses: codecov/codecov-action@v5
6562
env:
6663
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6764
with:

.nojekyll

Whitespace-only changes.

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ default_stages:
77
minimum_pre_commit_version: 2.16.0
88
repos:
99
- repo: https://github.com/biomejs/pre-commit
10-
rev: v1.9.4
10+
rev: v2.0.0-beta.1
1111
hooks:
1212
- id: biome-format
1313
- repo: https://github.com/tox-dev/pyproject-fmt
1414
rev: v2.5.1
1515
hooks:
1616
- id: pyproject-fmt
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.9.10
18+
rev: v0.11.4
1919
hooks:
2020
- id: ruff
2121
types_or: [python, pyi, jupyter]

CHANGELOG.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### <!-- 5 --> 🌀 Miscellaneous
11-
- Added additional repr test, remove .bacon-locations
12-
- ✅ Add repr with multiple groups test
13-
- ✅ More repr tests
14-
- Sphinx autodoc typehints >= 3.1.0 for python 3.11+
15-
- ⬆️ Sphinx autodoc typehings >= 3.1.0 for python 3.11+
16-
- ➕ Pooch as dep, not opt dep
17-
- 🏗️ Removed AnnselExpr class, now getting names from closure
18-
- Updated ExprMetadata
11+
- 💚 Fix biome.jsonc for 2.0.0-beta.1
12+
- 🎨 Ruff NP rules for tests
13+
- 👷 Update CI
14+
- [pre-commit.ci] auto fixes from pre-commit.com hooks
15+
- 👽️ Nonlocals of a nonlocal??? sure why not
16+
17+
## [0.1.0] - 2025-03-11
18+
19+
### <!-- 1 --> 🚀 Features
20+
- Look at names in closure for nw.Expr instead of subclassing it. by [@srivarra](https://github.com/srivarra) in [#50](https://github.com/srivarra/annsel/pull/50)
21+
22+
### <!-- 5 --> 🌀 Miscellaneous
23+
- [pre-commit.ci] pre-commit autoupdate by [@pre-commit-ci[bot]](https://github.com/pre-commit-ci[bot]) in [#48](https://github.com/srivarra/annsel/pull/48)
1924

2025
## [0.0.10] - 2025-03-03
2126

@@ -110,7 +115,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
110115

111116
### <!-- 5 --> 🌀 Miscellaneous
112117
- 💚 Missed one pypi-publish by [@srivarra](https://github.com/srivarra)
113-
- 💚 Bump gh-action-pypi-publish to 1.12.3 by [@srivarra](https://github.com/srivarra)
114118

115119
## [0.0.3] - 2024-12-21
116120

@@ -125,6 +129,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
125129
- Merge pull request #17 from srivarra/pre-commit-ci-update-config by [@srivarra](https://github.com/srivarra) in [#17](https://github.com/srivarra/annsel/pull/17)
126130

127131
### <!-- 5 --> 🌀 Miscellaneous
132+
- 💚 Bump gh-action-pypi-publish to 1.12.3 by [@srivarra](https://github.com/srivarra)
128133
- Api documentation fix by [@srivarra](https://github.com/srivarra)
129134
- Update README.md example by [@srivarra](https://github.com/srivarra)
130135
- 📌 Pin doc deps: scanpy, numba, llvmlite to release canidates by [@srivarra](https://github.com/srivarra)
@@ -145,7 +150,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
145150
- ✨ Added Groupby by [@srivarra](https://github.com/srivarra)
146151
- ✨ Add select by [@srivarra](https://github.com/srivarra)
147152
- Update README.md by [@srivarra](https://github.com/srivarra)
148-
- 💚 Set uv sync --frozen by [@srivarra](https://github.com/srivarra)
149153

150154
## [0.0.2] - 2024-11-12
151155

@@ -160,6 +164,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
160164
- Merge pull request #8 from srivarra/pre-commit-ci-update-config by [@srivarra](https://github.com/srivarra) in [#8](https://github.com/srivarra/annsel/pull/8)
161165

162166
### <!-- 5 --> 🌀 Miscellaneous
167+
- 💚 Set uv sync --frozen by [@srivarra](https://github.com/srivarra)
163168
- 📝 Added pre-commit readme badge by [@srivarra](https://github.com/srivarra)
164169
- 🔧 Add __version__ to __init__ by [@srivarra](https://github.com/srivarra)
165170
- ➕ Add typing-extensions by [@srivarra](https://github.com/srivarra)
@@ -230,7 +235,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
230235

231236
## New Contributors
232237
* @srivarra made their first contribution in [#5](https://github.com/srivarra/annsel/pull/5)
233-
[unreleased]: https://github.com/srivarra/annsel/compare/v0.0.10..HEAD
238+
[unreleased]: https://github.com/srivarra/annsel/compare/v0.1.0..HEAD
239+
[0.1.0]: https://github.com/srivarra/annsel/compare/v0.0.10..v0.1.0
234240
[0.0.10]: https://github.com/srivarra/annsel/compare/v0.0.9..v0.0.10
235241
[0.0.9]: https://github.com/srivarra/annsel/compare/v0.0.8..v0.0.9
236242
[0.0.8]: https://github.com/srivarra/annsel/compare/v0.0.7..v0.0.8

biome.jsonc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.1/schema.json",
33
"formatter": { "useEditorconfig": true },
44
"overrides": [
55
{
6-
"include": ["./.vscode/*.json", "**/*.jsonc"],
76
"json": {
87
"formatter": { "trailingCommas": "all" },
98
"parser": {
109
"allowComments": true,
11-
"allowTrailingCommas": true,
12-
},
13-
},
14-
},
15-
],
10+
"allowTrailingCommas": true
11+
}
12+
}
13+
}
14+
]
1615
}

docs/notebooks/all_of_annsel.ipynb

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@
4444
"## Set up Data"
4545
]
4646
},
47-
{
48-
"cell_type": "code",
49-
"execution_count": null,
50-
"metadata": {},
51-
"outputs": [],
52-
"source": [
53-
"%load_ext autoreload\n",
54-
"%autoreload 2"
55-
]
56-
},
5747
{
5848
"cell_type": "code",
5949
"execution_count": null,
@@ -97,6 +87,15 @@
9787
"display(adata)"
9888
]
9989
},
90+
{
91+
"cell_type": "code",
92+
"execution_count": null,
93+
"metadata": {},
94+
"outputs": [],
95+
"source": [
96+
"adata.an.filter(obsm={\"X_pca\": an.col([0, 1, 2]) > 1, \"X_projected\": an.col([1]) > 1})"
97+
]
98+
},
10099
{
101100
"cell_type": "markdown",
102101
"metadata": {},
@@ -502,15 +501,6 @@
502501
" obs=an.col([\"Cell_label\"]).is_in([\"Classical Monocytes\", \"CD8+CD103+ tissue resident memory T cells\"])\n",
503502
").an.pipe(sc.pl.embedding, basis=\"X_tsneni\", color=\"Cell_label\")"
504503
]
505-
},
506-
{
507-
"cell_type": "code",
508-
"execution_count": null,
509-
"metadata": {},
510-
"outputs": [],
511-
"source": [
512-
"an.col([\"Cell_label\", \"sex\"])"
513-
]
514504
}
515505
],
516506
"metadata": {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dynamic = [ "version" ]
2525
dependencies = [
2626
"anndata",
2727
"more-itertools>=10.6",
28-
"narwhals>=1.29.1",
28+
"narwhals>=1.34.1",
2929
"pooch>=1.8.2",
3030
# for debug logging (referenced from the issue template)
3131
"session-info2",

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ select = [
3131
"NPY", # NumPy-specific rules
3232
"PD", # Pandas code
3333
"PTH", # pathlib
34-
# "R", # Refactor
3534
"PT", # Pytest
35+
"PERF", # Perflint
3636
]
3737
ignore = [
3838
"B008", # Errors from function calls in argument defaults. These are fine when the result is immutable.

0 commit comments

Comments
 (0)