diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6a370da..cc849199 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.4.3.9020 + rev: v0.4.3.9021 hooks: - id: parsable-R - id: no-browser-statement @@ -50,14 +50,14 @@ repos: - id: tox-ini-fmt - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.16.1 + rev: v2.20.0 hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.12.1"] - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.15.1 + rev: v0.15.7 hooks: # Run the formatter. - id: ruff-format diff --git a/python/pyproject.toml b/python/pyproject.toml index 8cd4ea74..83236c2e 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -190,19 +190,6 @@ expand_tables = [ "project.urls", "project.optional-dependencies" ] # List of tables to force collapse regardless of table_format or expand_tables settings collapse_tables = [ "project.authors" ] -[tool.pytest.ini_options] -faulthandler_timeout = 10 -doctest_optionflags = "NUMBER" -addopts = [ "--import-mode=importlib", "--durations=5", "--durations-min=1.0" ] - -[tool.coverage.report] -exclude_also = [ - ".*(?:#|//)\\s+nocov", - ".* ASSUME\\s?\\(.+\\);", - ".* unreachable\\s?\\(\\);", - ".*(?:GCOVR?|LCOV)_EXCL_LINE", -] - [tool.mypy] python_version = "3.11" # Strictness (recommended for library code) @@ -221,6 +208,19 @@ warn_unused_configs = true ignore_missing_imports = true files = [ "src/" ] +[tool.pytest.ini_options] +faulthandler_timeout = 10 +doctest_optionflags = "NUMBER" +addopts = [ "--import-mode=importlib", "--durations=5", "--durations-min=1.0" ] + +[tool.coverage.report] +exclude_also = [ + ".*(?:#|//)\\s+nocov", + ".* ASSUME\\s?\\(.+\\);", + ".* unreachable\\s?\\(\\);", + ".*(?:GCOVR?|LCOV)_EXCL_LINE", +] + [tool.gcovr] exclude-lines-by-pattern = [ ".*(?:#|//)\\s+nocov",