Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "c59bba8fb259db0fec2bbb77ad8ba51ea7341b56" # frozen: v0.15.20
rev: "7c55798a78262d14b2074abf623d8a992ebb70d4" # frozen: v0.16.2
hooks:
- id: ruff
args: [--fix, --show-fixes]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "d2823d321df3af8f878f7ee3414dc94d037145b9" # frozen: v2.1.0
rev: "41e691678310dfd3833f7ab4e180ddb014310356" # frozen: v2.3.0
hooks:
- id: mypy
files: src
Expand All @@ -32,14 +32,14 @@ repos:
additional_dependencies: ["validate-pyproject-schema-store[all]>=2024.10.21"]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "1a4bb160cab6417b3045e1b37b6b72449243e658" # frozen: 0.37.4
rev: "c4654a7e007c9619a5eb63c39a456572a0fa1851" # frozen: 0.38.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: e3eebf65325ccc992422292cb7a4baee967cf815 # frozen: v1.26.1
rev: 451b56af716f9f0d0c2b816503a3fd0cf8b036fa # frozen: v1.29.0
hooks:
- id: zizmor
files: "^\\.github"
1 change: 0 additions & 1 deletion src/ninja/_version.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import annotations

version: str
version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]
2 changes: 1 addition & 1 deletion src/ninja/ninja_syntax.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Writer:
def default(self, paths: Sequence[str | PathLike[str]]) -> None: ...
def close(self) -> None: ...

def as_list(input: None | list[str] | str) -> list[str]: ...
def as_list(input: list[str] | str | None) -> list[str]: ...

def escape(string: str) -> str: ...

Expand Down
Loading