From c27bff9c2fa79cc1cece1e32a01fadaf26ebcd33 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 14 Jan 2025 22:08:40 -0500 Subject: [PATCH] chore: bump to ruff 0.9 and mypy 1.14 (#909) * chore: bump to ruff 0.9 and mypy 1.14 Signed-off-by: Henry Schreiner * fix: use consistent -r and fix editable test Signed-off-by: Henry Schreiner * Apply suggestions from code review Co-authored-by: Diego Ramirez * tests: ignore -r seperation Signed-off-by: Henry Schreiner * Update tests/test_tox_to_nox.py * Update tests/test_tox_to_nox.py --------- Signed-off-by: Henry Schreiner Co-authored-by: Diego Ramirez --- .pre-commit-config.yaml | 4 ++-- nox/tox_to_nox.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a7dda492..75cd8167 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,14 +24,14 @@ repos: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.0 + rev: v0.9.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy files: ^(nox/|tests/) diff --git a/nox/tox_to_nox.py b/nox/tox_to_nox.py index 48844544..bb5b7c54 100644 --- a/nox/tox_to_nox.py +++ b/nox/tox_to_nox.py @@ -121,7 +121,7 @@ def main() -> None: impl = "python" if section["py_impl"] == "cpython" else section["py_impl"] config[name]["base_python"] = impl + section["py_dot_ver"] - change_dir = Path(section.get("change_dir")) + change_dir = Path(section.get("change_dir", "")) rel_to_cwd = change_dir.relative_to(Path.cwd()) if str(rel_to_cwd) == ".": config[name]["change_dir"] = None