diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55df0f382..578fe189b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.14.2" + rev: "v2.15.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/uv-pre-commit @@ -31,7 +31,7 @@ repos: hooks: - id: uv-lock - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier args: ["--tab-width", "2"] diff --git a/pyproject.toml b/pyproject.toml index da2676936..945a1c7b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,15 +103,15 @@ ini_options.addopts = "-v -Wdefault --cov=deezer" ini_options.pythonpath = [ "src" ] [tool.coverage] -report.ignore_errors = true +run.branch = true +run.source = [ "deezer" ] report.exclude_lines = [ - "pragma: no cover", "@overload", "if TYPE_CHECKING", + "pragma: no cover", "raise NotImplementedError", ] -run.branch = true -run.source = [ "deezer" ] +report.ignore_errors = true [tool.semantic_release] version_toml = [ "pyproject.toml:project.version" ]