Skip to content

Commit

Permalink
Add uv pre-commit hook and autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbarrett314 committed Sep 5, 2024
1 parent 74ce45b commit d2bc9d9
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 28 deletions.
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
- id: ssort
exclude: '^cursesmenu/curses_menu.py$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
rev: v0.6.4
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -54,18 +54,22 @@ repos:
- id: blacken-docs
additional_dependencies: [black==22.6.0]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.377
rev: v1.1.379
hooks:
- id: pyright
additional_dependencies:
- pytest
- pyte
- pexpect
- importlib-metadata
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.5
hooks:
- id: uv-lock
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ dev-dependencies = [
"pytest-cov<6.0.0",
"coverage-conditional-plugin<0.10.0",
"mypy<1.12.0",
"ruff == 0.6.1"
"ruff == 0.6.4"
]

[tool.hatch.build.targets.wheel]
Expand Down
2 changes: 1 addition & 1 deletion test/test_curses_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_empty_menu(empty_menu: CursesMenu):
assert not empty_menu.is_alive()


def test_big_menu(big_menu: CursesMenu): # noqa: ARG001
def test_big_menu(big_menu: CursesMenu):
pass


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ basepython = python3.12

[testenv:lint]
deps =
ruff == v0.6.1
ruff == v0.6.4
commands =
ruff check cursesmenu
ruff check test
Expand Down
44 changes: 22 additions & 22 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2bc9d9

Please sign in to comment.