diff --git a/.flake8 b/.flake8 index fd8dd45a8..ddfbbb851 100644 --- a/.flake8 +++ b/.flake8 @@ -83,19 +83,20 @@ per-file-ignores = src/ansible_navigator/__main__.py: RST304, WPS300 src/ansible_navigator/_version.py: D210, D400, D412, WPS410 src/ansible_navigator/_yaml.py: D210, D400, D401, DAR101, DAR201, WPS110, WPS229, WPS433, WPS437, WPS440, WPS458 - src/ansible_navigator/action_runner.py: D107, D200, D400, D403, DAR101, WPS231, WPS300, WPS437 + src/ansible_navigator/action_runner.py: D107, D200, D400, D403, DAR101, WPS231, WPS300, WPS436, WPS437, WPS450 src/ansible_navigator/actions/__init__.py: D400, WPS300, WPS410, WPS412, WPS450 - src/ansible_navigator/actions/_actions.py: D210, D400, D401, DAR101, DAR201, WPS111, WPS202, WPS221, WPS305, WPS407, WPS433, WPS440, WPS458 + src/ansible_navigator/actions/_actions.py: D210, D400, D401, DAR101, DAR201, WPS111, WPS201, WPS202, WPS210, WPS221, WPS305, WPS323, WPS407, WPS433, WPS440, WPS458 src/ansible_navigator/actions/back.py: D107, D400, DAR101, WPS115, WPS300, WPS306, WPS323, WPS450 - src/ansible_navigator/actions/collections.py: C409, C414, D102, D107, D201, D202, D205, D400, D403, DAR101, DAR201, WPS110, WPS111, WPS115, WPS121, WPS122, WPS201, WPS204, WPS210, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS237, WPS300, WPS305, WPS323, WPS336, WPS338, WPS440, WPS441, WPS450, WPS504, WPS505, WPS529 - src/ansible_navigator/actions/config.py: C405, C409, D107, D201, D202, D205, D400, D403, DAR101, DAR201, DAR401, WPS110, WPS111, WPS115, WPS201, WPS204, WPS210, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS232, WPS300, WPS305, WPS323, WPS331, WPS336, WPS436, WPS440, WPS450, WPS502 + src/ansible_navigator/actions/collections.py: C409, C414, D102, D107, D201, D202, D205, D400, D403, DAR101, DAR201, WPS110, WPS111, WPS115, WPS121, WPS122, WPS201, WPS204, WPS210, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS237, WPS300, WPS305, WPS323, WPS324, WPS336, WPS338, WPS440, WPS441, WPS450, WPS504, WPS505, WPS529 + src/ansible_navigator/actions/config.py: C405, C409, D107, D201, D202, D205, D400, D403, DAR101, DAR201, DAR401, WPS110, WPS111, WPS115, WPS201, WPS204, WPS210, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS232, WPS300, WPS305, WPS323, WPS324, WPS331, WPS336, WPS436, WPS440, WPS450, WPS502 src/ansible_navigator/actions/doc.py: D107, D202, D400, D403, DAR101, DAR201, DAR401, N817, WPS110, WPS111, WPS115, WPS201, WPS210, WPS213, WPS220, WPS221, WPS229, WPS231, WPS232, WPS300, WPS305, WPS323, WPS331, WPS347, WPS450, WPS503 + src/ansible_navigator/actions/exec.py: WPS115, WPS210, WPS323, WPS450 src/ansible_navigator/actions/filter.py: D107, D400, DAR101, WPS115, WPS300, WPS306, WPS323, WPS450 src/ansible_navigator/actions/help_doc.py: D107, D400, DAR101, DAR201, WPS115, WPS300, WPS360, WPS450 src/ansible_navigator/actions/images.py: D107, D201, D400, D403, DAR101, DAR201, WPS110, WPS111, WPS115, WPS121, WPS122, WPS201, WPS210, WPS212, WPS213, WPS214, WPS221, WPS223, WPS226, WPS229, WPS231, WPS237, WPS300, WPS305, WPS323, WPS331, WPS336, WPS338, WPS349, WPS450, WPS504, WPS510, WPS529 src/ansible_navigator/actions/inventory.py: C409, D102, D107, D202, D205, D400, D403, DAR101, DAR201, N806, WPS110, WPS111, WPS112, WPS115, WPS201, WPS210, WPS212, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS300, WPS305, WPS323, WPS324, WPS331, WPS336, WPS338, WPS450, WPS510, WPS600 src/ansible_navigator/actions/log.py: D107, D400, DAR101, DAR201, WPS115, WPS231, WPS232, WPS300, WPS360, WPS450 - src/ansible_navigator/actions/open_file.py: D105, D107, D400, DAR101, DAR201, S605, WPS110, WPS111, WPS115, WPS201, WPS210, WPS221, WPS231, WPS300, WPS306, WPS323, WPS338, WPS436, WPS440, WPS450 + src/ansible_navigator/actions/open_file.py: D105, D107, D400, DAR101, DAR201, S605, WPS110, WPS111, WPS115, WPS201, WPS210, WPS220, WPS221, WPS231, WPS300, WPS306, WPS323, WPS324, WPS338, WPS436, WPS440, WPS450 src/ansible_navigator/actions/quit.py: D107, D200, D400, DAR101, DAR201, WPS115, WPS300, WPS306, WPS323, WPS360, WPS450 src/ansible_navigator/actions/refresh.py: D107, D400, DAR101, WPS115, WPS300, WPS306, WPS450 src/ansible_navigator/actions/replay.py: D200, D400, WPS115, WPS300, WPS450 @@ -111,9 +112,9 @@ per-file-ignores = src/ansible_navigator/actions/stdout.py: D107, D400, DAR101, DAR201, WPS110, WPS115, WPS231, WPS232, WPS300, WPS360, WPS450 src/ansible_navigator/actions/template.py: D107, D400, DAR101, DAR201, WPS110, WPS111, WPS115, WPS210, WPS213, WPS221, WPS231, WPS232, WPS300, WPS323, WPS360, WPS450 src/ansible_navigator/actions/welcome.py: D107, D400, DAR101, DAR201, WPS115, WPS300, WPS360, WPS450 - src/ansible_navigator/actions/write_file.py: D107, D400, DAR101, DAR201, WPS110, WPS111, WPS115, WPS210, WPS221, WPS231, WPS232, WPS300, WPS306, WPS323, WPS436, WPS440, WPS450 + src/ansible_navigator/actions/write_file.py: D107, D400, DAR101, DAR201, WPS110, WPS111, WPS115, WPS210, WPS221, WPS231, WPS232, WPS300, WPS306, WPS323, WPS324, WPS436, WPS440, WPS450 src/ansible_navigator/app_public.py: D204, D205, D211, D400, WPS300 - src/ansible_navigator/app.py: D107, D200, D205, D209, D400, D401, D403, DAR101, DAR201, DAR401, N817, WPS110, WPS111, WPS201, WPS214, WPS221, WPS300, WPS306, WPS338, WPS347, WPS602 + src/ansible_navigator/app.py: D107, D200, D205, D209, D400, D401, D403, DAR101, DAR201, DAR401, N817, WPS110, WPS111, WPS201, WPS214, WPS221, WPS300, WPS305, WPS306, WPS338, WPS347, WPS602 src/ansible_navigator/cli.py: B010, D200, D400, D403, DAR101, DAR201, WPS201, WPS210, WPS213, WPS221, WPS229, WPS237, WPS300, WPS305, WPS323, WPS331, WPS336, WPS440 src/ansible_navigator/command_runner/__init__.py: D210, D400, WPS300, WPS412 src/ansible_navigator/command_runner/command_runner.py: D107, D400, D403, DAR101, DAR201, S404, S602, WPS110, WPS121, WPS122, WPS229, WPS306, WPS440, WPS602 @@ -121,12 +122,12 @@ per-file-ignores = src/ansible_navigator/configuration_subsystem/configurator.py: B010, D200, D202, D205, D400, D401, D403, DAR101, DAR201, N817, WPS110, WPS111, WPS201, WPS210, WPS211, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS232, WPS237, WPS300, WPS305, WPS306, WPS336, WPS337, WPS338, WPS347, WPS436, WPS440, WPS510 src/ansible_navigator/configuration_subsystem/definitions.py: D200, D204, D400, D401, DAR101, DAR201, DAR401, WPS110, WPS115, WPS221, WPS226, WPS237, WPS300, WPS305, WPS331, WPS338, WPS613 src/ansible_navigator/configuration_subsystem/navigator_configuration.py: D200, D205, D400, DAR201, N812, N817, WPS111, WPS201, WPS204, WPS221, WPS226, WPS237, WPS300, WPS305, WPS347, WPS436 - src/ansible_navigator/configuration_subsystem/navigator_post_processor.py: B009, B014, D200, D400, DAR101, DAR201, N817, WPS111, WPS201, WPS204, WPS210, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS237, WPS300, WPS305, WPS306, WPS336, WPS337, WPS338, WPS347, WPS420, WPS440, WPS441, WPS448, WPS510, WPS602 + src/ansible_navigator/configuration_subsystem/navigator_post_processor.py: B009, B014, D200, D400, DAR101, DAR201, N817, WPS111, WPS115, WPS201, WPS204, WPS210, WPS213, WPS214, WPS220, WPS221, WPS226, WPS229, WPS231, WPS237, WPS300, WPS305, WPS306, WPS336, WPS337, WPS338, WPS347, WPS420, WPS440, WPS441, WPS448, WPS510, WPS602 src/ansible_navigator/configuration_subsystem/parser.py: D107, D200, D400, DAR101, DAR201, N817, WPS111, WPS221, WPS237, WPS300, WPS305, WPS306, WPS323, WPS336, WPS347, WPS436, WPS450, WPS504, WPS507, WPS602 src/ansible_navigator/image_manager/__init__.py: D210, D400, WPS300, WPS412 src/ansible_navigator/image_manager/inspector.py: D107, D400, D403, DAR101, DAR201, WPS110, WPS114, WPS210, WPS221, WPS300, WPS305, WPS306, WPS602 src/ansible_navigator/image_manager/puller.py: D107, D400, D403, DAR201, DAR401, S404, S603, WPS110, WPS111, WPS213, WPS214, WPS221, WPS226, WPS229, WPS231, WPS237, WPS300, WPS305, WPS306, WPS338 - src/ansible_navigator/initialization.py: D202, D205, D400, D403, DAR101, DAR201, N812, N817, WPS110, WPS111, WPS201, WPS204, WPS210, WPS213, WPS221, WPS226, WPS237, WPS300, WPS301, WPS305, WPS336, WPS347, WPS436, WPS504, WPS529, WPS609 + src/ansible_navigator/initialization.py: D202, D205, D400, D403, DAR101, DAR201, N812, N817, WPS110, WPS111, WPS201, WPS204, WPS210, WPS213, WPS221, WPS226, WPS237, WPS300, WPS301, WPS305, WPS336, WPS347, WPS414, WPS436, WPS504, WPS529, WPS609 src/ansible_navigator/runner/__init__.py: D200, D400, WPS300, WPS412 src/ansible_navigator/runner/ansible_config.py: C815, D205, D400, WPS300 src/ansible_navigator/runner/ansible_doc.py: C815, D205, D400, DAR101, DAR201, WPS211, WPS221, WPS234, WPS300 @@ -182,7 +183,7 @@ per-file-ignores = tests/fixtures/common/collections/ansible_collections/testorg/coll_2/plugins/lookup/lookup_2.py: WPS114, WPS422 tests/fixtures/common/collections/ansible_collections/testorg/coll_2/plugins/modules/mod_2.py: WPS114, WPS422 tests/integration/__init__.py: D104 - tests/integration/_action_run_test.py: D107, D205, D400, D401, D403, DAR101, DAR201, DAR401, N817, WPS110, WPS111, WPS201, WPS210, WPS211, WPS305, WPS306, WPS347 + tests/integration/_action_run_test.py: D107, D205, D400, D401, D403, DAR101, DAR201, DAR401, N817, WPS110, WPS111, WPS201, WPS210, WPS211, WPS305, WPS306, WPS316, WPS347 tests/integration/_cli2runner.py: D200, D400, D401, D403, DAR101, DAR401, WPS115, WPS211, WPS214, WPS226, WPS306, WPS338, WPS454 tests/integration/_common.py: B005, D103, D200, D400, D401, D403, DAR101, DAR201, DAR401, WPS210, WPS211, WPS231, WPS300, WPS305, WPS440 tests/integration/_interactions.py: D200, D204, D400, D403, DAR101, DAR201, WPS110, WPS115, WPS305, WPS336, WPS437, WPS503 @@ -210,8 +211,11 @@ per-file-ignores = tests/integration/actions/doc/test_stdout.py: D200, D400, PT006, WPS114, WPS115, WPS202, WPS226, WPS300, WPS326 tests/integration/actions/doc/test_welcome_interactive_ee.py: D200, D400, PT006, WPS115, WPS300, WPS326 tests/integration/actions/doc/test_welcome_interactive_noee.py: D200, D400, PT006, WPS115, WPS300 + tests/integration/actions/exec/base.py: S101, WPS201, WPS210, WPS305, WPS436 + tests/integration/actions/exec/test_stdout_config_cli.py: WPS305, WPS436 + tests/integration/actions/exec/test_stdout_config_file.py: WPS305, WPS436 tests/integration/actions/images/__init__.py: D104 - tests/integration/actions/images/base.py: D200, D202, D400, D403, DAR101, DAR301, DAR401, S101, WPS110, WPS115, WPS210, WPS300, WPS305, WPS306, WPS336, WPS337, WPS436 + tests/integration/actions/images/base.py: D200, D202, D400, D403, DAR101, DAR301, DAR401, S101, WPS110, WPS115, WPS210, WPS221, WPS300, WPS305, WPS306, WPS336, WPS337, WPS436, WPS602 tests/integration/actions/images/test_direct_interactive_ee.py: D200, D400, WPS115, WPS300, WPS436 tests/integration/actions/images/test_direct_interactive_noee.py: D200, D400, WPS115, WPS300, WPS436 tests/integration/actions/images/test_welcome_interactive_ee.py: D200, D400, WPS115, WPS300, WPS436 @@ -224,7 +228,7 @@ per-file-ignores = tests/integration/actions/inventory/test_welcome_interactive_ee.py: D200, D400, WPS115, WPS300, WPS305, WPS436 tests/integration/actions/inventory/test_welcome_interactive_noee.py: D200, D400, WPS115, WPS300, WPS305, WPS436 tests/integration/actions/replay/__init__.py: D104 - tests/integration/actions/replay/base.py: D200, D201, D400, D403, DAR101, DAR301, S101, WPS110, WPS115, WPS211, WPS300, WPS305, WPS306, WPS336, WPS337, WPS436, WPS602 + tests/integration/actions/replay/base.py: D200, D201, D400, D403, DAR101, DAR301, S101, WPS110, WPS115, WPS210, WPS211, WPS300, WPS305, WPS306, WPS336, WPS337, WPS436, WPS602 tests/integration/actions/replay/test_direct_interactive_ee.py: D200, D400, PT006, WPS115, WPS226, WPS300, WPS305, WPS326 tests/integration/actions/replay/test_direct_interactive_noee.py: D200, D400, PT006, WPS115, WPS226, WPS300, WPS305 tests/integration/actions/replay/test_welcome_interactive_ee.py: D200, D400, PT006, WPS115, WPS226, WPS300, WPS305 @@ -237,7 +241,7 @@ per-file-ignores = tests/integration/actions/run/test_welcome_interactive_ee.py: D200, D400, WPS115, WPS300, WPS305, WPS436 tests/integration/actions/run/test_welcome_interactive_noee.py: D200, D400, WPS115, WPS300, WPS305, WPS436 tests/integration/actions/stdout/__init__.py: D104 - tests/integration/actions/stdout/base.py: D200, D201, D400, D403, DAR101, DAR301, S101, WPS110, WPS115, WPS211, WPS300, WPS305, WPS306, WPS336, WPS337, WPS436, WPS602 + tests/integration/actions/stdout/base.py: D200, D201, D400, D403, DAR101, DAR301, S101, WPS110, WPS115, WPS210, WPS211, WPS300, WPS305, WPS306, WPS336, WPS337, WPS436, WPS602 tests/integration/actions/stdout/test_direct_interactive_ee.py: D200, D400, PT006, WPS115, WPS226, WPS300, WPS305, WPS326 tests/integration/actions/stdout/test_direct_interactive_noee.py: D200, D400, PT006, WPS115, WPS226, WPS300, WPS305, WPS326 tests/integration/actions/stdout/test_welcome_interactive_ee.py: D200, D400, PT006, WPS115, WPS226, WPS300, WPS305, WPS326 @@ -257,6 +261,7 @@ per-file-ignores = tests/unit/__init__.py: D104 tests/unit/actions/__init__.py: D104 tests/unit/actions/test_config.py: D200, D400, D403, S101, WPS110, WPS204, WPS218, WPS221, WPS226, WPS305 + tests/unit/actions/test_exec.py: S101, WPS305, WPS450 tests/unit/actions/test_inventory.py: D200, D400, D403, S101, WPS110, WPS204, WPS218, WPS221, WPS226, WPS305 tests/unit/actions/test_run.py: D200, D400, DAR101, DAR201, N813, PT019, S101, S108, WPS110, WPS121, WPS122, WPS201, WPS226, WPS237, WPS305, WPS425, WPS432, WPS437 tests/unit/configuration_subsystem/__init__.py: D104 @@ -268,19 +273,22 @@ per-file-ignores = tests/unit/configuration_subsystem/test_container_engine_auto.py: D200, DAR101, S101, WPS430, WPS520 tests/unit/configuration_subsystem/test_entries_sanity.py: D200, D400, DAR101, N817, S101, WPS110, WPS111, WPS202, WPS221, WPS226, WPS300, WPS347 tests/unit/configuration_subsystem/test_fixture_sanity.py: D205, D400, S101, WPS110, WPS210, WPS300, WPS436 + tests/unit/configuration_subsystem/test_internals.py: S101, WPS430 tests/unit/configuration_subsystem/test_invalid_params.py: D200, D202, D400, DAR101, PT006, PT019, S101, WPS110, WPS202, WPS204, WPS226, WPS300, WPS305, WPS420, WPS430, WPS510 tests/unit/configuration_subsystem/test_mode_subcommand_action.py: D205, D400, S101, WPS226, WPS336, WPS437, WPS510 - tests/unit/configuration_subsystem/test_precedence.py: D205, D400, DAR101, N817, PT006, PT019, S101, WPS110, WPS111, WPS118, WPS201, WPS210, WPS211, WPS218, WPS226, WPS231, WPS232, WPS300, WPS347, WPS440, WPS458, WPS520, WPS529 - tests/unit/configuration_subsystem/test_previous_cli.py: D202, D205, D400, N817, PT019, S101, S108, WPS110, WPS111, WPS121, WPS204, WPS210, WPS218, WPS226, WPS347, WPS440, WPS458, WPS520 + tests/unit/configuration_subsystem/test_navigator_post_processor.py: S101, WPS226, WPS317 + tests/unit/configuration_subsystem/test_precedence.py: D205, D400, DAR101, N817, PT006, PT019, S101, WPS110, WPS111, WPS118, WPS201, WPS210, WPS211, WPS218, WPS221, WPS226, WPS231, WPS232, WPS300, WPS347, WPS440, WPS458, WPS520, WPS529 + tests/unit/configuration_subsystem/test_previous_cli.py: D202, D205, D400, N817, PT019, S101, S108, WPS110, WPS111, WPS121, WPS201, WPS204, WPS210, WPS218, WPS226, WPS347, WPS440, WPS458, WPS520 tests/unit/configuration_subsystem/test_sample_configurations.py: D205, D400, S101, WPS219, WPS221, WPS226, WPS428, WPS437 tests/unit/configuration_subsystem/utils.py: D200, D400, DAR101, DAR201, WPS100, WPS110, WPS305, WPS336, WPS510 tests/unit/image_manager/__init__.py: D104 tests/unit/image_manager/test_image_puller.py: D400, D403, DAR101, DAR201, S101, WPS110, WPS226, WPS300, WPS305 - tests/unit/runner/test_api.py: D200, D202, D400, D403, DAR101, PT006, S101, S108, WPS226, WPS437 - tests/unit/test_cli.py: D200, D202, D205, D400, D403, DAR101, DAR201, PT006, PT019, S101, S108, WPS110, WPS210, WPS226, WPS300, WPS305, WPS360 + tests/unit/runner/test_api.py: D200, D202, D400, D403, DAR101, PT006, S101, S108, WPS226, WPS317, WPS437 + tests/unit/test_circular_imports.py: WPS210, WPS305, WPS317 + tests/unit/test_cli.py: D200, D202, D205, D400, D403, DAR101, DAR201, PT006, PT019, S101, S108, WPS110, WPS210, WPS226, WPS300, WPS305, WPS317, WPS360 tests/unit/test_image_introspection.py: D200, D400, D403, DAR101, DAR201, S101, WPS111, WPS204, WPS210, WPS218, WPS221, WPS226, WPS305 tests/unit/test_log_append.py: D200, D400, D403, DAR101, S101, WPS324, WPS430 - tests/unit/test_utils.py: D200, D202, D400, D403, DAR101, PT006, S101, WPS110, WPS202, WPS221, WPS226, WPS237, WPS305, WPS336, WPS407, WPS430, WPS432 + tests/unit/test_utils.py: D200, D202, D400, D403, DAR101, PT006, S101, WPS110, WPS202, WPS221, WPS226, WPS237, WPS305, WPS317, WPS336, WPS407, WPS430, WPS432 tests/unit/test_yaml.py: D200, S101, WPS301, WPS436 tests/unit/ui_framework/test_colorize.py: D200, D205, D209, D400, DAR101, S101, WPS110, WPS204, WPS218, WPS221, WPS226, WPS436