Skip to content

Commit 401b37f

Browse files
committed
fix: resolve linting errors (W292, W293) in test files
- Add missing newlines at end of files in conftest.py, setup.py, and test_basic.py - Remove trailing whitespace from blank lines in test_client.py - All ruff and mypy checks now pass
1 parent c156d9d commit 401b37f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# Add src to Python path for test discovery
66
src_path = Path(__file__).parent / "src"
77
if str(src_path) not in sys.path:
8-
sys.path.insert(0, str(src_path))
8+
sys.path.insert(0, str(src_path))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Minimal setup.py for compatibility with tools that require it."""
22
from setuptools import setup
33

4-
setup()
4+
setup()

tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
def test_true():
55
"""Simplest possible test."""
6-
assert True
6+
assert True

tests/unit/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_client_init_with_env_var():
1616
"""Test client initialization with environment variable."""
1717
# Save original value
1818
original = os.environ.get("NUTRIENT_API_KEY")
19-
19+
2020
try:
2121
os.environ["NUTRIENT_API_KEY"] = "env-key"
2222
client = NutrientClient()
@@ -33,7 +33,7 @@ def test_client_init_precedence():
3333
"""Test that explicit API key takes precedence over env var."""
3434
# Save original value
3535
original = os.environ.get("NUTRIENT_API_KEY")
36-
36+
3737
try:
3838
os.environ["NUTRIENT_API_KEY"] = "env-key"
3939
client = NutrientClient(api_key="explicit-key")

0 commit comments

Comments
 (0)