# Why does ansible-test pylint consider "\_" to be a "bad-name"?

**URL:** <https://forum.ansible.com/t/why-does-ansible-test-pylint-consider-to-be-a-bad-name/34742>\
**Category:** Ansible Developer\
**Created:** [March 8, 2021, 6:25pm UTC](https://forum.ansible.com/t/why-does-ansible-test-pylint-consider-to-be-a-bad-name/34742 "2021-03-08T18:25:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [March 8, 2021, 6:25pm UTC](https://forum.ansible.com/t/why-does-ansible-test-pylint-consider-to-be-a-bad-name/34742/1 "2021-03-08T18:25:16Z")

</div>

Question about ansible-test sanity pylint - [https://github.com/ansible/ansible/blob/stable-2.9/test/lib/ansible\_test/\_data/sanity/pylint/config/ansible-test.cfg#L28](https://github.com/ansible/ansible/blob/stable-2.9/test/lib/ansible_test/_data/sanity/pylint/config/ansible-test.cfg#L28) - why is \_ considered a bad variable name? It is the standard, or at least de facto, way to ignore one of the return values from a function?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [March 8, 2021, 6:40pm UTC](https://forum.ansible.com/t/why-does-ansible-test-pylint-consider-to-be-a-bad-name/34742/2 "2021-03-08T18:40:03Z")

</div>

Hi,

> Question about ansible-test sanity pylint -  
> [https://github.com/ansible/ansible/blob/stable-2.9/test/lib/ansible\_test/\_data/sanity/pylint/config/ansible-test.cfg#L28](https://github.com/ansible/ansible/blob/stable-2.9/test/lib/ansible_test/_data/sanity/pylint/config/ansible-test.cfg#L28)  
> - why is \_ considered a bad variable name? It is the standard, or at  
> least de facto, way to ignore one of the return values from a  
> function?

according to the documentation:  
[https://docs.ansible.com/ansible/latest/dev\_guide/testing/sanity/no-underscore-variable.html](https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/no-underscore-variable.html)

Cheers,  
Felix
