Skip to content

Commit

Permalink
🔧 Update pre-commit (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Aug 21, 2024
1 parent 46bd6dd commit 4e10030
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.11.1
hooks:
- id: mypy
files: sphinx_needs/.*
Expand Down
4 changes: 1 addition & 3 deletions tests/doc_test/doc_needs_warnings/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def my_custom_warning_check(need, log):


def custom_warning_func(need, log):
if need["status"] == "example_3":
return True
return False
return need["status"] == "example_3"


def setup(app):
Expand Down
4 changes: 1 addition & 3 deletions tests/doc_test/need_constraints/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ def my_custom_warning_check(need, log):


def custom_warning_func(need, log):
if need["status"] == "example_3":
return True
return False
return need["status"] == "example_3"


def setup(app):
Expand Down
4 changes: 1 addition & 3 deletions tests/doc_test/need_constraints_failed/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def my_custom_warning_check(need, log):


def custom_warning_func(need, log):
if need["status"] == "example_3":
return True
return False
return need["status"] == "example_3"


def setup(app):
Expand Down

0 comments on commit 4e10030

Please sign in to comment.