Skip to content

Commit

Permalink
Enable pylint rules to detect pointless statements (ansible#79944)
Browse files Browse the repository at this point in the history
Also instruct `git blame` to ignore the commit used to convert pointless strings to comments.
  • Loading branch information
mattclay authored Feb 8, 2023
1 parent 7166311 commit 497d296
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# .git-blame-ignore-revs
# Bulk PowerShell sanity fixes
6def4a3180fe03981ba64c6d8db28fed3bb39c0c
716631189cb5a3f66b3add98f39e64e98bc17bf7
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ disable=
not-a-mapping,
not-an-iterable,
not-callable,
pointless-statement,
pointless-string-statement,
possibly-unused-variable,
protected-access,
raise-missing-from, # Python 2.x does not support raise from
Expand Down
2 changes: 2 additions & 0 deletions test/sanity/ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ test/support/integration/plugins/module_utils/network/common/utils.py pylint:unu
test/support/integration/plugins/modules/sefcontext.py pylint:unused-import
test/support/integration/plugins/modules/zypper.py pylint:unused-import
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/utils.py pylint:unused-import
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py pylint:pointless-string-statement
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/filter/ipaddr.py pylint:pointless-string-statement
test/support/windows-integration/plugins/action/win_reboot.py pylint:unused-import
test/support/integration/plugins/modules/timezone.py pylint:disallowed-name
test/support/integration/plugins/module_utils/compat/ipaddress.py future-import-boilerplate
Expand Down

0 comments on commit 497d296

Please sign in to comment.