diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f33d849..e28bcff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.14 + rev: v0.15.15 hooks: - id: ruff-check args: [--fix] @@ -13,11 +13,11 @@ repos: args: [--preview, --select=CPY] - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.2 + rev: v2.23.0 hooks: - id: pyproject-fmt - repo: https://github.com/biomejs/pre-commit - rev: v2.4.15 + rev: v2.4.16 hooks: - id: biome-format - repo: https://github.com/kynan/nbstripout diff --git a/pyproject.toml b/pyproject.toml index cd8b67f..ec38faf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,23 +61,23 @@ notebook = [ ] [tool.hatch] +version.source = "vcs" +metadata.hooks.docstring-description = {} envs.default.installer = "uv" -envs.docs.dependency-groups = [ "docs" ] envs.docs.scripts.build = "sphinx-build -W --keep-going -b html docs docs/_build/html {args}" -envs.docs.scripts.open = "python3 -m webbrowser -t docs/_build/html/index.html" envs.docs.scripts.clean = "git clean -fdX -- {args:docs}" -envs.hatch-test.default-args = [] -envs.hatch-test.dependency-groups = [ "test" ] +envs.docs.scripts.open = "python3 -m webbrowser -t docs/_build/html/index.html" +envs.docs.dependency-groups = [ "docs" ] envs.hatch-test.extra-dependencies = [ "pyinstrument" ] +envs.hatch-test.matrix = [ { python = [ "3.14", "3.10" ], deps = [ "all", "min" ] } ] envs.hatch-test.overrides.matrix.deps.features = [ - { if = [ "all" ], value = "jupyter" }, + { value = "jupyter", if = [ "all" ] }, ] -envs.hatch-test.matrix = [ { python = [ "3.14", "3.10" ], deps = [ "all", "min" ] } ] -envs.notebook.dependency-groups = [ "notebook" ] +envs.hatch-test.default-args = [] +envs.hatch-test.dependency-groups = [ "test" ] envs.notebook.extra-dependencies = [ "ipykernel" ] envs.notebook.scripts.install-kernel = "python -m ipykernel install --user --name=session-info2 --display-name=session-info2 --env COLUMNS 110" -metadata.hooks.docstring-description = {} -version.source = "vcs" +envs.notebook.dependency-groups = [ "notebook" ] [tool.ruff] lint.select = [ "ALL" ] @@ -120,24 +120,24 @@ lint.pylint.max-args = 7 lint.pylint.max-positional-args = 3 [tool.mypy] -strict = true -explicit_package_bases = true mypy_path = [ "$MYPY_CONFIG_FILE_DIR/stubs", "$MYPY_CONFIG_FILE_DIR/src" ] +explicit_package_bases = true +strict = true [tool.pyright] stubPath = "./stubs" reportPrivateUsage = false [tool.pytest] -strict = true addopts = [ "--import-mode=importlib" ] -asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "session" +asyncio_mode = "auto" filterwarnings = [ "error", "ignore:Jupyter is migrating its paths:DeprecationWarning", "ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil", ] +strict = true [tool.coverage] run.branch = true