Skip to content

Commit

Permalink
Add: add default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Balou9 committed Jul 19, 2024
1 parent 093ad1c commit 7407eb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autohooks/plugins/ruff/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from autohooks.config import Config
from autohooks.precommit.run import ReportProgress

DEFAULT_ARGUMENTS = []
DEFAULT_ARGUMENTS = [ "--output-format=concise" ]


def check_ruff_installed() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def test_precommit_ok(
]
ret = precommit()

error_mock.assert_not_called()
out_mock.assert_not_called()
error_mock.assert_any_call()
out_mock.assert_any_call()
ok_mock.assert_called_once_with("Linting test_ruff.py was successful.")

# Returncode 0 -> no errors
Expand Down

0 comments on commit 7407eb6

Please sign in to comment.