diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2bf7d5a..74ce081 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,11 +12,11 @@ repos: - 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.11.1 + rev: v2.12.1 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.11 + rev: v0.14.14 hooks: - id: ruff-check types_or: [python, pyi, jupyter] diff --git a/pyproject.toml b/pyproject.toml index 76e3be1..9c665a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,9 +79,6 @@ urls.Documentation = "https://cellmapper.readthedocs.io/" urls.Homepage = "https://github.com/quadbio/cellmapper" urls.Source = "https://github.com/quadbio/cellmapper" -[tool.hatch.version] -source = "vcs" - [tool.hatch.envs.default] installer = "uv" features = [ "dev" ] @@ -92,6 +89,9 @@ scripts.build = "sphinx-build -M html docs docs/_build {args}" scripts.open = "python -m webbrowser -t docs/_build/html/index.html" scripts.clean = "git clean -fdX -- {args:docs}" +[tool.hatch.envs.hatch-test] +features = [ "dev", "test" ] + # Test the lowest and highest supported Python versions with normal deps [[tool.hatch.envs.hatch-test.matrix]] deps = [ "stable" ] @@ -102,9 +102,6 @@ python = [ "3.11", "3.14" ] deps = [ "pre" ] python = [ "3.14" ] -[tool.hatch.envs.hatch-test] -features = [ "dev", "test" ] - [tool.hatch.envs.hatch-test.overrides] # If the matrix variable `deps` is set to "pre", # set the environment variable `UV_PRERELEASE` to "allow". @@ -112,6 +109,9 @@ matrix.deps.env-vars = [ { key = "UV_PRERELEASE", value = "allow", if = [ "pre" ] }, ] +[tool.hatch.version] +source = "vcs" + [tool.ruff] line-length = 120 src = [ "src" ]