Skip to content

Commit 42cb321

Browse files
committed
fix: update fix.sh to include tests in code style checks
1 parent 937accc commit 42cb321

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

scripts/fix.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# コードスタイルの自動修正を行います
33

44
cd "$( dirname "$0" )"/..
5-
uv run ruff check --fix-only api
6-
uv run black api
5+
uv run ruff check --fix-only api tests
6+
uv run black api tests

tests/test_add.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import pytest
22

3+
34
def add(a: int, b: int) -> int:
45
return a + b
56

67

7-
8-
98
@pytest.mark.parametrize(
109
"a, b, expected",
1110
[
@@ -16,4 +15,4 @@ def add(a: int, b: int) -> int:
1615
],
1716
)
1817
def test_normal(a, b, expected):
19-
assert add(a, b) == expected
18+
assert add(a, b) == expected

0 commit comments

Comments
 (0)