diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e6294c..b057381 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: trailing-whitespace - id: no-commit-to-branch - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.6 + rev: v0.15.7 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] @@ -14,11 +14,11 @@ repos: args: [--preview, --select=CPY] - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.18.1 + rev: v2.20.0 hooks: - id: pyproject-fmt - repo: https://github.com/biomejs/pre-commit - rev: v2.4.7 + rev: v2.4.8 hooks: - id: biome-format - repo: https://github.com/pre-commit/mirrors-mypy diff --git a/pyproject.toml b/pyproject.toml index fd9457f..4bc0160 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,6 +137,17 @@ lint.isort.lines-after-imports = 2 lint.pydocstyle.convention = "numpy" lint.future-annotations = true +[tool.mypy] +strict = true +# https://github.com/dask/dask/issues/8853 +implicit_reexport = true +explicit_package_bases = true +mypy_path = [ "$MYPY_CONFIG_FILE_DIR/typings", "$MYPY_CONFIG_FILE_DIR/src" ] + +[tool.pyright] +stubPath = "./typings" +reportPrivateUsage = false + [tool.pytest] strict = true addopts = [ @@ -169,14 +180,3 @@ run.omit = [ "src/testing/*", "tests/*" ] report.exclude_also = [ "@numba[.]njit", "[.]{3}", "if TYPE_CHECKING:" ] html.directory = "test-data/htmlcov" xml.output = "test-data/coverage.xml" - -[tool.mypy] -strict = true -# https://github.com/dask/dask/issues/8853 -implicit_reexport = true -explicit_package_bases = true -mypy_path = [ "$MYPY_CONFIG_FILE_DIR/typings", "$MYPY_CONFIG_FILE_DIR/src" ] - -[tool.pyright] -stubPath = "./typings" -reportPrivateUsage = false