Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ default_stages:
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/biomejs/pre-commit
rev: v2.4.14
rev: v2.5.0
hooks:
- id: biome-format
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.21.1
rev: v2.25.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
rev: v0.15.18
hooks:
- id: ruff-check
types_or: [python, pyi, jupyter]
Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ include-package-data = true
[tool.setuptools_scm]

[tool.hatch]
version.source = "vcs"
metadata.allow-direct-references = true
build.hooks.vcs.version-file = "_version.py"
build.targets.wheel.packages = [ "src/squidpy" ]
metadata.allow-direct-references = true
version.source = "vcs"

[tool.pixi]
workspace.channels = [ "conda-forge" ]
Expand Down Expand Up @@ -183,7 +183,6 @@ lint.select = [
"UP", # pyupgrade
"W", # pycodestyle
]
# "squidpy/*.py"= ["RST303"]
lint.ignore = [
# B008 Do not perform function calls in argument defaults.
"B008",
Expand Down Expand Up @@ -259,27 +258,28 @@ lint.unfixable = [
# Disallow all relative imports.
lint.flake8-tidy-imports.ban-relative-imports = "all"
lint.isort.required-imports = [ "from __future__ import annotations" ]
# "squidpy/*.py" = [ "RST303" ]

[tool.pytest]
strict = true
addopts = [
"--ignore=docs",
]
filterwarnings = [
"error::numba.NumbaPerformanceWarning",
"ignore::UserWarning",
"ignore::anndata.OldFormatWarning",
"ignore:.*pkg_resources:DeprecationWarning",
]
python_files = [ "test_*.py" ]
testpaths = [ "tests/" ]
addopts = [
"--ignore=docs",
]
markers = [
"internet: tests that require internet",
# the below markers are just there because we import from anndata.tests.helpers,
# which means pytest sees them despite us not using them.
"gpu: tests that require GPU",
"array_api: tests that require array-api-compat",
]
python_files = [ "test_*.py" ]
strict = true
testpaths = [ "tests/" ]

[tool.coverage]
run.branch = true
Expand Down
Loading