Skip to content

Commit a973c91

Browse files
committed
fix: resolve ruff format and lint errors in tests
1 parent 6f6ff11 commit a973c91

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_shellflow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@
1313
from typing import Any
1414
from unittest import mock
1515

16-
import os
1716
import pytest
1817
from hypothesis import given
1918
from hypothesis import strategies as st
2019

21-
ZSH_AVAILABLE = os.path.exists("/bin/zsh")
22-
2320
from shellflow import (
2421
VALID_EXPORT_SOURCES,
2522
Block,
@@ -42,6 +39,8 @@
4239
run_script,
4340
)
4441

42+
ZSH_AVAILABLE = Path("/bin/zsh").exists()
43+
4544
VALID_EXPORT_NAME_STRATEGY = st.from_regex(r"[A-Za-z_][A-Za-z0-9_]*", fullmatch=True)
4645
INVALID_EXPORT_NAME_STRATEGY = st.one_of(
4746
st.from_regex(r"[0-9][A-Za-z0-9_]*", fullmatch=True),

0 commit comments

Comments
 (0)