diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26dd7b6..953b3a8 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.6 + rev: v0.15.7 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.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/kynan/nbstripout diff --git a/pyproject.toml b/pyproject.toml index 98399bd..cd8b67f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,15 @@ lint.isort.required-imports = [ "from __future__ import annotations" ] 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" ] + +[tool.pyright] +stubPath = "./stubs" +reportPrivateUsage = false + [tool.pytest] strict = true addopts = [ "--import-mode=importlib" ] @@ -139,14 +148,5 @@ paths.session_info2 = [ "src/session_info2", "*/session-info2/src/session_info2" paths.tests = [ "tests", "*/session-info2/tests" ] report.exclude_lines = [ "if __name__ == .__main__.:", "if TYPE_CHECKING:", "no cov" ] -[tool.mypy] -strict = true -explicit_package_bases = true -mypy_path = [ "$MYPY_CONFIG_FILE_DIR/stubs", "$MYPY_CONFIG_FILE_DIR/src" ] - -[tool.pyright] -stubPath = "./stubs" -reportPrivateUsage = false - [tool.esbonio] sphinx.pythonCommand = [ "hatch", "-e", "docs", "run", "python" ]