Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #69

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
args: [ --autofix ]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.11.0
hooks:
- id: ruff
args: [ "--fix" , "--show-fixes" ] # --fix-only
Expand Down
24 changes: 12 additions & 12 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def test_cli_caen_channel_mon():
print(f"exit_code: {exit_code}")

exit_code_expected = 0 if parameter not in ["INVALID_PARAMETER"] else 1
assert (
exit_code == exit_code_expected
), f"exit_code: {exit_code} for arguments: {arguments}"
assert exit_code == exit_code_expected, (
f"exit_code: {exit_code} for arguments: {arguments}"
)


def test_cli_caen_channel_set():
Expand Down Expand Up @@ -155,9 +155,9 @@ def test_cli_caen_module_mon():
print(f"exit_code: {exit_code}")

exit_code_expected = 0 if parameter not in ["INVALID_PARAMETER"] else 1
assert (
exit_code == exit_code_expected
), f"exit_code: {exit_code} for arguments: {arguments}"
assert exit_code == exit_code_expected, (
f"exit_code: {exit_code} for arguments: {arguments}"
)


def test_cli_caen_module_set():
Expand Down Expand Up @@ -246,9 +246,9 @@ def test_cli_iseg_channel_mon():
print(f"exit_code: {exit_code}")

exit_code_expected = 0 if parameter not in ["INVALID_PARAMETER"] else 1
assert (
exit_code == exit_code_expected
), f"exit_code: {exit_code} for arguments: {arguments}"
assert exit_code == exit_code_expected, (
f"exit_code: {exit_code} for arguments: {arguments}"
)


def test_cli_iseg_channel_set():
Expand Down Expand Up @@ -351,9 +351,9 @@ def test_cli_iseg_module_mon():
print(f"exit_code: {exit_code}")

exit_code_expected = 0 if parameter not in ["INVALID_PARAMETER"] else 1
assert (
exit_code == exit_code_expected
), f"exit_code: {exit_code} for arguments: {arguments}"
assert exit_code == exit_code_expected, (
f"exit_code: {exit_code} for arguments: {arguments}"
)


def test_cli_iseg_module_set():
Expand Down
Loading