Skip to content

Commit a5256e9

Browse files
ci: pre-commit autoupdate (#4139)
1 parent 8f1d746 commit a5256e9

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: v0.15.13
6+
rev: v0.15.16
77
hooks:
88
- id: ruff-check
99
args: ["--fix"]
@@ -20,11 +20,11 @@ repos:
2020
- --sort-by-bibkey
2121
- --drop=abstract
2222
- repo: https://github.com/biomejs/pre-commit
23-
rev: v2.4.15
23+
rev: v2.4.16
2424
hooks:
2525
- id: biome-format
2626
- repo: https://github.com/tox-dev/pyproject-fmt
27-
rev: v2.21.2
27+
rev: v2.23.0
2828
hooks:
2929
- id: pyproject-fmt
3030
- repo: https://github.com/pre-commit/pre-commit-hooks

pyproject.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ test-min = [
148148
]
149149

150150
[tool.hatch]
151-
build.targets.wheel.packages = [ "src/testing", "src/scanpy" ]
152151
version.source = "vcs"
153152
version.raw-options.version_scheme = "release-branch-semver"
153+
build.targets.wheel.packages = [ "src/scanpy", "src/testing" ]
154154

155155
[tool.ruff]
156156
src = [ "src" ]
@@ -244,22 +244,13 @@ expand_tables = [
244244
]
245245

246246
[tool.pytest]
247-
strict = true
248247
addopts = [
249248
"--import-mode=importlib",
250249
"--strict-markers",
251250
"--doctest-modules",
252251
"-ptesting.scanpy._pytest",
253252
"--pyargs",
254253
]
255-
testpaths = [ "./tests", "./ci", "scanpy" ]
256-
norecursedirs = [ "tests/_images" ]
257-
junit_family = "xunit1"
258-
markers = [
259-
"internet: tests which rely on internet resources (enable with `--internet-tests`)",
260-
"gpu: tests that use a GPU (unused, required by anndata.tests.helpers)",
261-
"array_api: tests that use array_api (unused, required by anndata.tests.helpers)",
262-
]
263254
filterwarnings = [
264255
"error",
265256
# Umap warns when tensorflow isn’t installed.
@@ -289,6 +280,15 @@ filterwarnings = [
289280
# joblib fallback to serial mode in restricted multiprocessing environments
290281
"ignore:.*joblib will operate in serial mode:UserWarning",
291282
]
283+
junit_family = "xunit1"
284+
markers = [
285+
"internet: tests which rely on internet resources (enable with `--internet-tests`)",
286+
"gpu: tests that use a GPU (unused, required by anndata.tests.helpers)",
287+
"array_api: tests that use array_api (unused, required by anndata.tests.helpers)",
288+
]
289+
norecursedirs = [ "tests/_images" ]
290+
strict = true
291+
testpaths = [ "./tests", "./ci", "scanpy" ]
292292

293293
[tool.coverage]
294294
run.concurrency = [ "multiprocessing" ]
@@ -309,19 +309,19 @@ xml.output = "test-data/coverage.xml"
309309
[tool.towncrier]
310310
name = "scanpy"
311311
package = "scanpy"
312+
package_dir = "src"
312313
directory = "docs/release-notes"
313314
filename = "docs/release-notes/{version}.md"
314-
single_file = false
315-
package_dir = "src"
316-
issue_format = "{{pr}}`{issue}`"
317315
title_format = "(v{version})=\n### {version} {{small}}`{project_date}`"
316+
issue_format = "{{pr}}`{issue}`"
317+
single_file = false
318+
fragment.breaking.name = "Breaking changes" # add `!` to commit type (e.g. “feature!:”)
319+
fragment.chore.name = "Miscellaneous changes"
320+
fragment.docs.name = "Documentation"
318321
# Valid fragments should be a subset of conventional commit types (except for `breaking`):
319322
# https://github.com/commitizen/conventional-commit-types/blob/master/index.json
320323
# style, refactor, test, build, ci: should not go into changelog
321324
fragment.feat.name = "Features"
322325
fragment.fix.name = "Bug fixes"
323-
fragment.docs.name = "Documentation"
324326
fragment.perf.name = "Performance"
325-
fragment.chore.name = "Miscellaneous changes"
326327
fragment.revert.name = "Revert"
327-
fragment.breaking.name = "Breaking changes" # add `!` to commit type (e.g. “feature!:”)

0 commit comments

Comments
 (0)