diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f59006b..cca0b46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,16 +7,16 @@ default_stages: minimum_pre_commit_version: 2.16.0 repos: - repo: https://github.com/biomejs/pre-commit - rev: v2.4.15 + rev: v2.4.16 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.2 + rev: v2.23.0 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.13 + rev: v0.15.15 hooks: - id: ruff-check types_or: [python, pyi, jupyter] diff --git a/pyproject.toml b/pyproject.toml index 13a3b12..266a85a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,12 +79,13 @@ urls.Homepage = "https://github.com/quadbio/cellmapper" urls.Source = "https://github.com/quadbio/cellmapper" [tool.hatch] +version.source = "vcs" envs.default.installer = "uv" envs.default.features = [ "dev" ] envs.docs.features = [ "doc" ] envs.docs.scripts.build = "sphinx-build -M html docs docs/_build {args}" -envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html" envs.docs.scripts.clean = "git clean -fdX -- {args:docs}" +envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html" envs.hatch-test.features = [ "dev", "test" ] envs.hatch-test.matrix = [ # Test the lowest and highest supported Python versions with normal deps @@ -95,9 +96,8 @@ envs.hatch-test.matrix = [ # If the matrix variable `deps` is set to "pre", # set the environment variable `UV_PRERELEASE` to "allow". envs.hatch-test.overrides.matrix.deps.env-vars = [ - { key = "UV_PRERELEASE", value = "allow", if = [ "pre" ] }, + { value = "allow", key = "UV_PRERELEASE", if = [ "pre" ] }, ] -version.source = "vcs" [tool.ruff] line-length = 120 @@ -138,11 +138,11 @@ lint.per-file-ignores."tests/*" = [ "D" ] lint.pydocstyle.convention = "numpy" [tool.pytest] -testpaths = [ "tests" ] -strict = true addopts = [ "--import-mode=importlib", # allow using test files with same name ] +strict = true +testpaths = [ "tests" ] [tool.coverage] run.omit = [