Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-cbarber committed Jan 15, 2024
1 parent 74ebcc0 commit 43bd7a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/whl2conda/cli/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,9 @@ def convert_main(args: Optional[Sequence[str]] = None, prog: Optional[str] = Non
download_index, download_spec = parsed.from_index

wheel_or_root = parsed.wheel_or_root
default_project_root = False
saw_positional_root = False
if not wheel_or_root:
project_root = Path.cwd()
default_project_root = True
else:
if wheel_or_root.is_dir():
project_root = wheel_or_root
Expand Down
8 changes: 4 additions & 4 deletions test/cli/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def fake_download_wheel(
assert spec == self.expected_download_spec
assert index == self.expected_download_index
_into = into or Path.cwd()
return into / "fake-1.0-py3-none-any.whl"
return _into / "fake-1.0-py3-none-any.whl"

def fake_input(prompt: str) -> str:
expected_prompt = next(prompts)
Expand Down Expand Up @@ -344,7 +344,7 @@ def __call__(
interactive: Optional[bool] = None,
expected_build_number: Optional[int] = None,
expected_download_index: str = "",
expected_download_spec: str= "",
expected_download_spec: str = "",
expected_dry_run: bool = False,
expected_package_name: str = "",
expected_parser_error: str = "",
Expand Down Expand Up @@ -755,7 +755,7 @@ def test_choose_wheel(

def test_download_wheel(
test_case: CliTestCaseFactory,
simple_wheel: Path,
simple_wheel: Path, # pylint: disable=unused-argument
) -> None:
"""Test downloading wheel"""

Expand All @@ -770,7 +770,7 @@ def test_download_wheel(
["--from-index", "https://somewhere.com/pypi", "simple >=1.2.3"],
interactive=False,
expected_download_spec="simple >=1.2.3",
expected_download_index="https://somewhere.com/pypi"
expected_download_index="https://somewhere.com/pypi",
)
case.run()

Expand Down

0 comments on commit 43bd7a1

Please sign in to comment.