Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1367)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.0 →
v0.8.6](astral-sh/ruff-pre-commit@v0.8.0...v0.8.6)
- [github.com/pre-commit/mirrors-mypy: v1.13.0 →
v1.14.1](pre-commit/mirrors-mypy@v1.13.0...v1.14.1)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Sewell <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and chrisjsewell authored Jan 7, 2025
1 parent 77514a2 commit 1114e72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ repos:
- id: taplo-format

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.8.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
files: sphinx_needs/.*
Expand Down
2 changes: 1 addition & 1 deletion sphinx_needs/directives/needflow/_graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def process_needflow_graphviz(
for etype in ("graph", "node", "edge"):
if etype in attributes["graphviz_style"]:
content += f"{etype} [\n"
for key, value in attributes["graphviz_style"][etype].items(): # type: ignore[literal-required]
for key, value in attributes["graphviz_style"][etype].items():
content += f" {key}={_quote(str(value))};\n"
content += "]\n"

Expand Down
2 changes: 1 addition & 1 deletion sphinx_needs/directives/needgantt.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def process_needgantt(
else:
start_end_sync = "start"

for link_type in current_needgantt[con_type]: # type: ignore[literal-required]
for link_type in current_needgantt[con_type]:
start_with_links = need[link_type] # type: ignore[literal-required]
for start_with_link in start_with_links:
start_need = all_needs_dict[start_with_link]
Expand Down
2 changes: 1 addition & 1 deletion sphinx_needs/services/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def prepare_issue_data(
line, 60, break_long_words=True, replace_whitespace=False
)
)
for line in item["body"].splitlines() # type: ignore
for line in item["body"].splitlines()
if line.strip()
]

Expand Down

0 comments on commit 1114e72

Please sign in to comment.