From fd9b480a1c640e1454fc1a61613b37773135fcd0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 16 Jun 2024 04:05:00 +0000 Subject: [PATCH 1/5] Update poetry lock file --- poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index f2b1908..f9c16ce 100644 --- a/poetry.lock +++ b/poetry.lock @@ -209,7 +209,7 @@ python-versions = ">=3.7" [[package]] name = "pep8-naming" -version = "0.13.3" +version = "0.14.0" description = "Check PEP-8 naming conventions, plugin for flake8" category = "main" optional = false @@ -497,8 +497,8 @@ pathspec = [ {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"}, ] pep8-naming = [ - {file = "pep8-naming-0.13.3.tar.gz", hash = "sha256:1705f046dfcd851378aac3be1cd1551c7c1e5ff363bacad707d43007877fa971"}, - {file = "pep8_naming-0.13.3-py3-none-any.whl", hash = "sha256:1a86b8c71a03337c97181917e2b472f0f5e4ccb06844a0d6f0a33522549e7a80"}, + {file = "pep8-naming-0.14.0.tar.gz", hash = "sha256:c2dcf35de7731b4fe1adcea4ca97e0abf52c811b137054edd25816a34016c9cd"}, + {file = "pep8_naming-0.14.0-py3-none-any.whl", hash = "sha256:5a74972c7a0f882aa643120c8de16b5d8b8b1636a17ac04dbeaff5ce393aa8b4"}, ] platformdirs = [ {file = "platformdirs-4.0.0-py3-none-any.whl", hash = "sha256:118c954d7e949b35437270383a3f2531e99dd93cf7ce4dc8340d3356d30f173b"}, From 74b20c59eb205f066accf44644f7e07767c35d3f Mon Sep 17 00:00:00 2001 From: mshafer-NI Date: Mon, 8 Jul 2024 13:54:18 -0500 Subject: [PATCH 2/5] Update output__aggressive.py Update snapshot to match new version of flake8-naming --- .../function_signature_tests/output__aggressive.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py index a67e6d0..3cc7ba5 100644 --- a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py +++ b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py @@ -37,7 +37,7 @@ def method_with_parameters_on_multiple_lines(x, y): def method_with_bad_names_on_single_line( myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_name, + my_other_Bad_name, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide parameters with bad names on single line.""" return myBadlyNamedParam + my_other_Bad_name @@ -52,7 +52,7 @@ def method_with_bad_names_on_multiple_lines_1( def method_with_bad_names_on_multiple_lines_2( myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_name, + my_other_Bad_name, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide parameters with bad names on multiple lines.""" return myBadlyNamedParam + my_other_Bad_name @@ -81,7 +81,7 @@ def method_withBadName_with_parameters_on_multiple_lines( # noqa: N802 - functi def method_withBadName_with_bad_params_on_single_line( # noqa: N802 - function name 'method_withBadName_with_bad_params_on_single_line' should be lowercase (auto-generated noqa) myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_name, + my_other_Bad_name, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide parameters with bad names on single line.""" return myBadlyNamedParam + my_other_Bad_name @@ -96,7 +96,7 @@ def method_withBadName_with_bad_params_on_multiple_lines_1( # noqa: N802 - func def method_withBadName_with_bad_params_on_multiple_lines_2( # noqa: N802 - function name 'method_withBadName_with_bad_params_on_multiple_lines_2' should be lowercase (auto-generated noqa) myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_name, + my_other_Bad_name, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide parameters with bad names on multiple lines.""" return myBadlyNamedParam + my_other_Bad_name @@ -105,7 +105,7 @@ def method_withBadName_with_bad_params_on_multiple_lines_2( # noqa: N802 - func def method_withBadName_andParams( # noqa: N802 - function name 'method_withBadName_andParams' should be lowercase (auto-generated noqa) my_normal_param, myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_param, + my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide example where black will want to split out result.""" return 5 + 7 @@ -114,7 +114,7 @@ def method_withBadName_andParams( # noqa: N802 - function name 'method_withBadN def method_withBadName_and_bad_param_with_long_name( # noqa: N802 - function name 'method_withBadName_and_bad_param_with_long_name' should be lowercase (auto-generated noqa) my_normal_param, myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_param, + my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide example where black will want to split out result even more""" # noqa: D415, W505 - First line should end with a period, question mark, or exclamation point (auto-generated noqa), doc line too long (188 > 100 characters) (auto-generated noqa) return 5 + 7 From 4b3e9e2708d876f366136d7f6d04d7bea113b936 Mon Sep 17 00:00:00 2001 From: mshafer-NI Date: Mon, 8 Jul 2024 13:57:15 -0500 Subject: [PATCH 3/5] Fix snapshot for unicode file --- .../unicode_in_files/output__aggressive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py index 4cefd2d..92d26d7 100644 --- a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py +++ b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py @@ -17,7 +17,7 @@ def problem_chars(self): def method_withBadName_andParams( # noqa: N802 - function name 'method_withBadName_andParams' should be lowercase (auto-generated noqa) my_normal_param, myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_param, + my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide example where black will want to split out result.""" return 5 + 7 From c90962a38bf1200d36e18ac8f5f6efe551a43f63 Mon Sep 17 00:00:00 2001 From: mshafer-NI Date: Mon, 8 Jul 2024 14:02:33 -0500 Subject: [PATCH 4/5] Update tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py --- .../unicode_in_files/output__aggressive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py index 92d26d7..68a68cf 100644 --- a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py +++ b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/unicode_in_files/output__aggressive.py @@ -17,7 +17,7 @@ def problem_chars(self): def method_withBadName_andParams( # noqa: N802 - function name 'method_withBadName_andParams' should be lowercase (auto-generated noqa) my_normal_param, myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) + my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_param' should be lowercase (auto-generated noqa) ): """Provide example where black will want to split out result.""" return 5 + 7 From 4def643a395e82d91a77c280bd116ae408c42c63 Mon Sep 17 00:00:00 2001 From: mshafer-NI Date: Mon, 8 Jul 2024 14:13:32 -0500 Subject: [PATCH 5/5] actualy use --snapshot-update to just update all (#187) now that I figured out that the best way was to do a 'git checkout -b some_branch upstream/automated-updates/update-poetry-lock' to get a branch tracking this upstream branch --- .../function_signature_tests/output.py.txt | 4 ++-- .../function_signature_tests/output__aggressive.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output.py.txt b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output.py.txt index ff0c079..4c12efe 100644 --- a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output.py.txt +++ b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output.py.txt @@ -49,7 +49,7 @@ def method_with_bad_names_on_multiple_lines_1( def method_with_bad_names_on_multiple_lines_2( myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_name, + my_other_Bad_name, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide parameters with bad names on multiple lines.""" return myBadlyNamedParam + my_other_Bad_name @@ -84,7 +84,7 @@ def method_withBadName_with_bad_params_on_multiple_lines_1( # noqa: N802 - func def method_withBadName_with_bad_params_on_multiple_lines_2( # noqa: N802 - function name 'method_withBadName_with_bad_params_on_multiple_lines_2' should be lowercase (auto-generated noqa) myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_name, + my_other_Bad_name, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) ): """Provide parameters with bad names on multiple lines.""" return myBadlyNamedParam + my_other_Bad_name diff --git a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py index 3cc7ba5..197954f 100644 --- a/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py +++ b/tests/test_cli/acknowledge_existing_errors_test_cases__snapshots/function_signature_tests/output__aggressive.py @@ -105,7 +105,7 @@ def method_withBadName_with_bad_params_on_multiple_lines_2( # noqa: N802 - func def method_withBadName_andParams( # noqa: N802 - function name 'method_withBadName_andParams' should be lowercase (auto-generated noqa) my_normal_param, myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) + my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_param' should be lowercase (auto-generated noqa) ): """Provide example where black will want to split out result.""" return 5 + 7 @@ -114,7 +114,7 @@ def method_withBadName_andParams( # noqa: N802 - function name 'method_withBadN def method_withBadName_and_bad_param_with_long_name( # noqa: N802 - function name 'method_withBadName_and_bad_param_with_long_name' should be lowercase (auto-generated noqa) my_normal_param, myBadlyNamedParam, # noqa: N803 - argument name 'myBadlyNamedParam' should be lowercase (auto-generated noqa) - my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_name' should be lowercase (auto-generated noqa) + my_other_Bad_param, # noqa: N803 - argument name 'my_other_Bad_param' should be lowercase (auto-generated noqa) ): """Provide example where black will want to split out result even more""" # noqa: D415, W505 - First line should end with a period, question mark, or exclamation point (auto-generated noqa), doc line too long (188 > 100 characters) (auto-generated noqa) return 5 + 7