Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1902

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
842 changes: 67 additions & 775 deletions .config/pylint-baseline.txt

Large diffs are not rendered by default.

12 changes: 6 additions & 6 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.8.3"
rev: "v0.9.1"
hooks:
- id: ruff
args:
- "--exit-non-zero-on-fix"

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.16.1
rev: v8.17.0
hooks:
- id: cspell
name: Spell check with cspell
Expand Down Expand Up @@ -147,18 +147,18 @@ repos:
- flake8-docstrings # uses pydocstyle

- repo: https://github.com/jsh9/pydoclint
rev: 0.5.12
rev: 0.6.0
hooks:
- id: pydoclint

- repo: https://github.com/asottile/pyupgrade
# keep it after flake8
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py310-plus"]
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -175,7 +175,7 @@ repos:
- types-typed-ast

- repo: https://github.com/pycqa/pylint.git
rev: v3.3.2
rev: v3.3.3
hooks:
- id: pylint
args:
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/actions/collections.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Collections subcommand implementation."""
"""Collections subcommand implementation.""" # noqa: A005

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/actions/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Processor of a menu selection from a numeric key press
or entry at the single line prompt. e.g ``:42``
"""
""" # noqa: A005

import logging

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ def to_string(self) -> str:
class Mode(Enum):
"""An enum to restrict mode type."""

STDOUT: str = "stdout"
INTERACTIVE: str = "interactive"
STDOUT = "stdout"
INTERACTIVE = "interactive"


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/tm_tokenize/tokenize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations
from __future__ import annotations # noqa: A005

from typing import TYPE_CHECKING

Expand Down
8 changes: 4 additions & 4 deletions tests/integration/actions/doc/test_direct_interactive_ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc,
)
class TestModuleDoc(BaseClass):
Expand All @@ -90,7 +90,7 @@ class TestModuleDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_lookup_doc,
)
class TestLookUpDoc(BaseClass):
Expand All @@ -101,7 +101,7 @@ class TestLookUpDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_filter_doc,
)
class TestFilterDoc(BaseClass):
Expand All @@ -112,7 +112,7 @@ class TestFilterDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc_not_exist,
)
class TestModuleDocNotExist(BaseClass):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc,
)
class TestModuleDoc(BaseClass):
Expand All @@ -79,7 +79,7 @@ class TestModuleDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_lookup_doc,
)
class TestLookUpDoc(BaseClass):
Expand All @@ -90,7 +90,7 @@ class TestLookUpDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_filter_doc,
)
class TestFilterDoc(BaseClass):
Expand All @@ -101,7 +101,7 @@ class TestFilterDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc_not_exist,
)
class TestModuleDocNotExist(BaseClass):
Expand Down
50 changes: 40 additions & 10 deletions tests/integration/actions/doc/test_stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_1)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_1,
)
class TestDocHelpWithEE(BaseClass):
"""Run the tests for doc help from CLI, stdout, with an EE."""

Expand All @@ -50,7 +53,10 @@ class TestDocHelpWithEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_2)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_2,
)
class TestDocHelpWithoutEE(BaseClass):
"""Run the tests for doc help from CLI, stdout, without an EE."""

Expand All @@ -75,7 +81,10 @@ class TestDocHelpWithoutEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_3)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_3,
)
class TestDocHelpWithEEInteractiveMode(BaseClass):
"""Run the tests for doc help from CLI, stdout, with an EE, wrong mode."""

Expand All @@ -100,7 +109,10 @@ class TestDocHelpWithEEInteractiveMode(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_4)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_4,
)
class TestDocHelpWithoutEEInteractiveMode(BaseClass):
"""Run the tests for doc help from CLI, stdout, without an EE, wrong mode."""

Expand All @@ -124,7 +136,10 @@ class TestDocHelpWithoutEEInteractiveMode(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_5)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_5,
)
class TestModuleDocWithoutEE(BaseClass):
"""Run the tests for doc from CLI, stdout, without an EE, module doc."""

Expand All @@ -149,7 +164,10 @@ class TestModuleDocWithoutEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_6)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_6,
)
class TestModuleDocWithEE(BaseClass):
"""Run the tests for doc from CLI, stdout, with an EE, module doc."""

Expand All @@ -175,7 +193,10 @@ class TestModuleDocWithEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_7)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_7,
)
class TestLookUpDocWithoutEE(BaseClass):
"""Run the tests for doc from CLI, stdout, without an EE, lookup doc."""

Expand All @@ -201,7 +222,10 @@ class TestLookUpDocWithoutEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_8)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_8,
)
class TestLookUpDocWithEE(BaseClass):
"""Run the tests for doc from CLI, stdout, with an EE, lookup doc."""

Expand All @@ -227,7 +251,10 @@ class TestLookUpDocWithEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_9)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_9,
)
class TestFilterDocWithoutEE(BaseClass):
"""Run the tests for doc from CLI, stdout, without an EE, filter doc."""

Expand All @@ -253,7 +280,10 @@ class TestFilterDocWithoutEE(BaseClass):
]


@pytest.mark.parametrize("index, user_input, comment, testname, expected_in_output", testdata_10)
@pytest.mark.parametrize(
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_10,
)
class TestFilterDocWithEE(BaseClass):
"""Run the tests for doc from CLI, stdout, with an EE, filter doc."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc,
)
class TestModuleDoc(BaseClass):
Expand All @@ -81,7 +81,7 @@ class TestModuleDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_lookup_doc,
)
class TestLookUpDoc(BaseClass):
Expand All @@ -92,7 +92,7 @@ class TestLookUpDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_filter_doc,
)
class TestFilterDoc(BaseClass):
Expand All @@ -103,7 +103,7 @@ class TestFilterDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc_not_exist,
)
class TestModuleDocNotExist(BaseClass):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc,
)
class TestModuleDoc(BaseClass):
Expand All @@ -74,7 +74,7 @@ class TestModuleDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_lookup_doc,
)
class TestLookUpDoc(BaseClass):
Expand All @@ -85,7 +85,7 @@ class TestLookUpDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_filter_doc,
)
class TestFilterDoc(BaseClass):
Expand All @@ -96,7 +96,7 @@ class TestFilterDoc(BaseClass):


@pytest.mark.parametrize(
"index, user_input, comment, testname, expected_in_output",
("index", "user_input", "comment", "testname", "expected_in_output"),
testdata_module_doc_not_exist,
)
class TestModuleDocNotExist(BaseClass):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]


@pytest.mark.parametrize("index, user_input, comment, search_within_response", testdata)
@pytest.mark.parametrize(("index", "user_input", "comment", "search_within_response"), testdata)
class Test(BaseClass):
"""Run the tests for replay from CLI, interactive, with an EE."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]


@pytest.mark.parametrize("index, user_input, comment, search_within_response", testdata)
@pytest.mark.parametrize(("index", "user_input", "comment", "search_within_response"), testdata)
class Test(BaseClass):
"""Run the tests for images from CLI, interactive, without an EE."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
]


@pytest.mark.parametrize("index, user_input, comment, search_within_response", testdata)
@pytest.mark.parametrize(("index", "user_input", "comment", "search_within_response"), testdata)
class Test(BaseClass):
"""Run the tests for images from welcome, interactive, with an EE."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
]


@pytest.mark.parametrize("index, user_input, comment, search_within_response", testdata)
@pytest.mark.parametrize(("index", "user_input", "comment", "search_within_response"), testdata)
class Test(BaseClass):
"""Run the tests for images from welcome, interactive, without an EE."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
]


@pytest.mark.parametrize("index, user_input, comment, search_within_response", testdata)
@pytest.mark.parametrize(("index", "user_input", "comment", "search_within_response"), testdata)
class Test(BaseClass):
"""Run the tests for ``stdout`` from CLI, interactive, with EE."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
]


@pytest.mark.parametrize("index, user_input, comment, search_within_response", testdata)
@pytest.mark.parametrize(("index", "user_input", "comment", "search_within_response"), testdata)
class Test(BaseClass):
"""Run the tests for ``stdout`` from CLI, ``interactive``, without an EE."""

Expand Down
Loading
Loading