Skip to content

Commit

Permalink
chore: bump to ruff 0.9 and mypy 1.14
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jan 9, 2025
1 parent 82b5542 commit fdec87d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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.0
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
15 changes: 8 additions & 7 deletions nox/tox_to_nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,13 @@ def main() -> None:
wrapjoin(c.split()) for c in section["commands"].strip().splitlines()
]

config[name]["deps"] = wrapjoin([
part for dep
in section["deps"].strip().splitlines()
for part in
(dep.split() if dep.startswith("-r") else [dep])
])
config[name]["deps"] = wrapjoin(
[
part
for dep in section["deps"].strip().splitlines()
for part in (dep.split() if dep.startswith("-r") else [dep])
]
)

for option in "skip_install", "use_develop":
if section.get(option):
Expand All @@ -138,7 +139,7 @@ def main() -> None:
)
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
3 changes: 1 addition & 2 deletions tests/test_tox_to_nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ def test_commands_with_requirements(makeconfig: Callable[[str], str]) -> None:
pytest
pytest-cov
aiohttp: -r requirements/aiohttp.txt
"""
)
""")
)

assert (
Expand Down

0 comments on commit fdec87d

Please sign in to comment.