Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (ansible#1829)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.4 → v0.5.5](astral-sh/ruff-pre-commit@v0.5.4...v0.5.5)
- [github.com/streetsidesoftware/cspell-cli: v8.11.0 → v8.12.0](streetsidesoftware/cspell-cli@v8.11.0...v8.12.0)
- [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](asottile/pyupgrade@v3.16.0...v3.17.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 30, 2024
1 parent 4a98eed commit 46129cd
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ repos:
- id: toml-sort-fix

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.4"
rev: "v0.5.5"
hooks:
- id: ruff
args:
- "--exit-non-zero-on-fix"

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.11.0
rev: v8.12.0
hooks:
- id: cspell
name: Spell check with cspell
Expand Down Expand Up @@ -153,7 +153,7 @@ repos:

- repo: https://github.com/asottile/pyupgrade
# keep it after flake8
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py310-plus"]
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/actions/_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def kegex(package: str, action: str) -> tuple[str, str, str]:
return _ACTIONS[package][action]


def kegexes(package: str) -> Generator[tuple[str, str, str], None, None]:
def kegexes(package: str) -> Generator[tuple[str, str, str]]:
"""Return a tuple of tuples, name, ``kegex`` for all actions.
:param package: The name of the package
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/data/catalog_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _generate_checksum(file_path: Path, relative_path: Path) -> dict[str, Any]:
def _process_plugin_dir(
self,
plugin_type: str,
filenames: Generator[Path, None, None],
filenames: Generator[Path],
file_checksums: dict[str, dict[Any, Any]],
collection: dict[Any, Any],
) -> None:
Expand Down
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def fixture_small_image_name() -> str:


@pytest.fixture()
def locked_directory(tmpdir: str) -> Generator[str, None, None]:
def locked_directory(tmpdir: str) -> Generator[str]:
"""Directory without read-write for throwing errors.
:param tmpdir: Fixture for temporary directory
Expand All @@ -125,7 +125,7 @@ def locked_directory(tmpdir: str) -> Generator[str, None, None]:


@pytest.fixture(scope="session")
def pullable_image(valid_container_engine: str) -> Generator[str, None, None]:
def pullable_image(valid_container_engine: str) -> Generator[str]:
"""Return a container that can be pulled.
:param valid_container_engine: Fixture for a valid container engine
Expand Down Expand Up @@ -303,7 +303,7 @@ def _cmd_in_tty(


@pytest.fixture()
def cmd_in_tty() -> Generator[Callable[..., tuple[str, str, int]], None, None]:
def cmd_in_tty() -> Generator[Callable[..., tuple[str, str, int]]]:
"""Provide the cmd in tty function as a fixture.
:yields: The cmd_in_tty function
Expand Down Expand Up @@ -419,7 +419,7 @@ def pytest_unconfigure(config: pytest.Config) -> None:
def skip_if_already_failed( # noqa: PT004
request: pytest.FixtureRequest,
failed: set[str] = set(),
) -> Generator[None, None, None]:
) -> Generator[None]:
"""Fixture that stops parametrized tests running on first failure."""
key = request.node.name.split("[")[0]
failed_before = request.session.testsfailed
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/actions/doc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BaseClass:
@pytest.fixture(scope="module", name="tmux_doc_session")
def fixture_tmux_doc_session(
request: pytest.FixtureRequest,
) -> Generator[TmuxSession, None, None]:
) -> Generator[TmuxSession]:
"""Tmux fixture for this module.
:param request: A fixture providing details about the test caller
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/actions/exec/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BaseClass:
def fixture_tmux_session(
self,
request: pytest.FixtureRequest,
) -> Generator[TmuxSession, None, None]:
) -> Generator[TmuxSession]:
"""Tmux fixture for this module.
:param request: The request for this fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/actions/lint/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BaseClass:

@staticmethod
@pytest.fixture(scope="module", name="tmux_session")
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession, None, None]:
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession]:
"""Tmux fixture for this module.
:param request: Pytest request object
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/actions/run/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class BaseClass:

@staticmethod
@pytest.fixture(scope="module", name="tmux_session")
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession, None, None]:
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession]:
"""Generate a tmux fixture for this module.
:param request: A fixture providing details about the test caller
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/actions/run_unicode/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BaseClass:

@staticmethod
@pytest.fixture(scope="module", name="tmux_session")
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession, None, None]:
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession]:
"""Tmux fixture for this module.
:param request: The request for this fixture from a test
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/actions/templar/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class BaseClass:

@staticmethod
@pytest.fixture(scope="module", name="tmux_session")
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession, None, None]:
def fixture_tmux_session(request: pytest.FixtureRequest) -> Generator[TmuxSession]:
"""Return a new tmux session.
The EDITOR is set here such that vi will not create swap files.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


@pytest.fixture()
def action_run_stdout() -> Generator[type[ActionRunTest], None, None]:
def action_run_stdout() -> Generator[type[ActionRunTest]]:
"""Create a fixture for ActionRunTest.
:yield: The ActionRunTest class.
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_circular_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _find_all_importables(pkg: ModuleType) -> list[str]:
def _discover_path_importables(
pkg_pth: Path,
pkg_name: str,
) -> Generator[str, None, None]:
) -> Generator[str]:
"""Yield all importables under a given path and package.
:param pkg_pth: The path to the package to walk
Expand Down

0 comments on commit 46129cd

Please sign in to comment.