1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/sanity/pylint
Matt Clay c24c19594e
Enable pylint rules and fix exposed bugs. (#47219)
* Resolve invalid-unary-operand-type.

* Resolve raising-format-tuple.

* Resolve stop-iteration-return.

* Use disable comment instead of fixing logic.

The affected line in _find_address_range will only fail on Python 3.7
and later if the function is called with an empty address list. As an
internal method it is never called in this way, making it a non-issue
for use via public methods.

Using a comment to disable the rule in favor of an ignore.txt entry
since there are no plans to change the logic in the code itself. This
will also prevent any potential future issues being added in other
parts of the code when updating it based on upstream changes.
2018-10-19 08:32:52 -07:00
..
config Enable pylint rules and fix exposed bugs. (#47219) 2018-10-19 08:32:52 -07:00
plugins Block module ansible imports outside module_utils. 2018-10-11 19:54:54 -07:00
ignore.txt Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
skip.txt Initial pylint support for ansible-test sanity. 2017-04-04 16:16:21 -07:00