diff options
author | Matt Clay <matt@mystile.com> | 2022-09-27 11:39:25 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2022-11-22 18:56:11 -0800 |
commit | d177a8ce4172a8e11a8c9ca98b5c500c0e83fab2 (patch) | |
tree | 66c202aa4e4d3adfe0d35ffa4aeb2cde8e990cb4 | |
parent | 3603a94dfcc3c70a4693f23c8ae7d40009b3e56d (diff) | |
download | ansible-d177a8ce4172a8e11a8c9ca98b5c500c0e83fab2.tar.gz |
[stable-2.12] ansible-test - Improve pylint command consistency. (#78896)
* ansible-test - Improve pylint command consistency.
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit bc274f5)
Co-authored-by: Matt Clay <matt@mystile.com>
-rw-r--r-- | changelogs/fragments/ansible-test-pylint-command.yml | 2 | ||||
-rw-r--r-- | test/lib/ansible_test/_internal/commands/sanity/pylint.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/ansible-test-pylint-command.yml b/changelogs/fragments/ansible-test-pylint-command.yml new file mode 100644 index 0000000000..7b8c320170 --- /dev/null +++ b/changelogs/fragments/ansible-test-pylint-command.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - Improve consistency of executed ``pylint`` commands by making the plugins ordered. diff --git a/test/lib/ansible_test/_internal/commands/sanity/pylint.py b/test/lib/ansible_test/_internal/commands/sanity/pylint.py index 5bd1787800..a4322f0308 100644 --- a/test/lib/ansible_test/_internal/commands/sanity/pylint.py +++ b/test/lib/ansible_test/_internal/commands/sanity/pylint.py @@ -226,7 +226,7 @@ class PylintTest(SanitySingleVersion): '--max-complexity', '20', '--rcfile', rcfile, '--output-format', 'json', - '--load-plugins', ','.join(load_plugins), + '--load-plugins', ','.join(sorted(load_plugins)), ] + paths if data_context().content.collection: |