Unify the way the imports work #9

Merged
alexander merged 21 commits from unify-imports into develop 2026-11-30 20:30:54 +01:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 07e90b7851 - Show all commits

Import click.testing as cli_testing

Like `click.core` as `cli_core`
Alexander Hess 2026-11-30 19:56:58 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -544,6 +544,8 @@ banned-from = [
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"click.core" = "cli_core"
"click.testing" = "cli_testing"
"collections.abc" = "cabc"
"geopy.distance" = "geo_distance"
"googlemaps" = "gm"

View file

@ -1,10 +1,10 @@
"""Fixture for testing the CLI scripts."""
import pytest
from click import testing as click_testing
from click import testing as cli_testing
@pytest.fixture
def cli() -> click_testing.CliRunner:
def cli() -> cli_testing.CliRunner:
"""Initialize Click's CLI Test Runner."""
return click_testing.CliRunner()
return cli_testing.CliRunner()