Skip to content

Commit c27bff9

Browse files
henryiiiDiddiLeija
andauthored
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 <[email protected]> * fix: use consistent -r and fix editable test Signed-off-by: Henry Schreiner <[email protected]> * Apply suggestions from code review Co-authored-by: Diego Ramirez <[email protected]> * tests: ignore -r seperation Signed-off-by: Henry Schreiner <[email protected]> * Update tests/test_tox_to_nox.py * Update tests/test_tox_to_nox.py --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: Diego Ramirez <[email protected]>
1 parent 12b805a commit c27bff9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ repos:
2424
- id: pyproject-fmt
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.8.0
27+
rev: v0.9.1
2828
hooks:
2929
- id: ruff
3030
args: ["--fix", "--show-fixes"]
3131
- id: ruff-format
3232

3333
- repo: https://github.com/pre-commit/mirrors-mypy
34-
rev: v1.13.0
34+
rev: v1.14.1
3535
hooks:
3636
- id: mypy
3737
files: ^(nox/|tests/)

nox/tox_to_nox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def main() -> None:
121121
impl = "python" if section["py_impl"] == "cpython" else section["py_impl"]
122122
config[name]["base_python"] = impl + section["py_dot_ver"]
123123

124-
change_dir = Path(section.get("change_dir"))
124+
change_dir = Path(section.get("change_dir", ""))
125125
rel_to_cwd = change_dir.relative_to(Path.cwd())
126126
if str(rel_to_cwd) == ".":
127127
config[name]["change_dir"] = None

0 commit comments

Comments
 (0)