diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02e796f..d7a71da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -69,13 +69,13 @@ repos: - id: taplo-lint args: ["--no-schema"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.18.1 + rev: v2.19.0 hooks: - id: pyproject-fmt files: ^pyproject\.toml$ # ** validate (schema-store) - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2026.03.10 + rev: 2026.03.15 hooks: - id: validate-pyproject name: validate-pyproject-schema-store @@ -109,7 +109,7 @@ repos: # * Linting - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.5 + rev: v0.15.6 hooks: - id: ruff-check alias: ruff @@ -129,7 +129,7 @@ repos: - "--command" - "ruff format" additional_dependencies: - - ruff==0.15.5 + - ruff==0.15.6 # * Spelling # ** typos @@ -151,7 +151,7 @@ repos: - "--custom-command=prek run pyproject2conda-project --all-files" # ** uv - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.10.9 + rev: 0.10.10 hooks: - id: uv-lock alias: requirements diff --git a/pyproject.toml b/pyproject.toml index c2ef919..548d86e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -165,55 +165,6 @@ CPY = "CPY" # only check file name for notebooks. Use nbaq for contents. check-file = false -# * Testing -------------------------------------------------------------------- -[tool.pytest.ini_options] -addopts = [ - "--cov-config=pyproject.toml", - "--doctest-glob=*.md", - "--doctest-modules", - "--pyargs", - "--strict-config", - "--strict-markers", - "-ra", -] -testpaths = [ - "README.md", - "pyproject2conda", - "tests", -] -# options -filterwarnings = [ "error" ] -log_cli_level = "INFO" -log_level = "INFO" -minversion = "8" -strict_xfail = "true" - -[tool.coverage] -run.branch = true -run.source = [ - "pyproject2conda", -] -paths.source = [ - "src/", - # needed for testing source if not editable install - ".nox/**/site-packages/", - "*/.nox/**/site-packages", - "*/src", -] -report.exclude_also = [ - "@overload", - "if TYPE_CHECKING:", -] -report.include = [ - "src/*", -] -report.omit = [ - "*/__main__.py", - "*/_typing.py", - "*/vendored/*", -] -report.show_missing = true - # * typecheck --------------------------------------------------------------------- [tool.mypy] exclude = [ @@ -302,6 +253,55 @@ reportUnusedCallResult = false analysis.respect-type-ignore-comments = false src.include = [ "src", "tests" ] +# * Testing -------------------------------------------------------------------- +[tool.pytest.ini_options] +addopts = [ + "--cov-config=pyproject.toml", + "--doctest-glob=*.md", + "--doctest-modules", + "--pyargs", + "--strict-config", + "--strict-markers", + "-ra", +] +testpaths = [ + "README.md", + "pyproject2conda", + "tests", +] +# options +filterwarnings = [ "error" ] +log_cli_level = "INFO" +log_level = "INFO" +minversion = "8" +strict_xfail = "true" + +[tool.coverage] +run.branch = true +run.source = [ + "pyproject2conda", +] +paths.source = [ + "src/", + # needed for testing source if not editable install + ".nox/**/site-packages/", + "*/.nox/**/site-packages", + "*/src", +] +report.exclude_also = [ + "@overload", + "if TYPE_CHECKING:", +] +report.include = [ + "src/*", +] +report.omit = [ + "*/__main__.py", + "*/_typing.py", + "*/vendored/*", +] +report.show_missing = true + [tool.pytype] inputs = [ "src",