Skip to content

Commit

Permalink
chore: bump to ruff 0.9 and mypy 1.14 (#909)
Browse files Browse the repository at this point in the history
* chore: bump to ruff 0.9 and mypy 1.14

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* fix: use consistent -r and fix editable test

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* Apply suggestions from code review

Co-authored-by: Diego Ramirez <dr01191115@gmail.com>

* tests: ignore -r seperation

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* Update tests/test_tox_to_nox.py

* Update tests/test_tox_to_nox.py

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Diego Ramirez <dr01191115@gmail.com>
  • Loading branch information
henryiii and DiddiLeija authored Jan 15, 2025
1 parent 12b805a commit c27bff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion nox/tox_to_nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c27bff9

Please sign in to comment.