#8468 [pylint] new warnings on dev branch
Closed: fixed 3 years ago by abbra. Opened 3 years ago by slev.

Pylint 2.5.3 against dev branch.

2020-08-18T11:37:16.2262721Z ************* Module ipaserver.dns_data_management
2020-08-18T11:37:16.2264497Z ipaserver/dns_data_management.py:146: [E1101(no-member), IPASystemRecords.__add_ca_records_from_hostname] Module 'dns.rdatatype' has no 'A' member)
2020-08-18T11:37:16.2268613Z ipaserver/dns_data_management.py:146: [E1101(no-member), IPASystemRecords.__add_ca_records_from_hostname] Module 'dns.rdatatype' has no 'AAAA' member)
2020-08-18T11:38:11.3322202Z ipaserver/install/installutils.py:190: [E1101(no-member), verify_fqdn] Module 'dns.rdatatype' has no 'CNAME' member)
2020-08-18T11:40:55.0009490Z ipatests/test_integration/test_dnssec.py:40: [E1101(no-member), resolve_with_dnssec] Module 'dns.flags' has no 'AD' member; maybe 'CD'?)
2020-08-18T11:40:55.0010229Z ipatests/test_integration/test_dnssec.py:354: [E1101(no-member), TestInstallDNSSECFirst.test_chain_of_trust] Module 'dns.rdatatype' has no 'DNSKEY' member)
2020-08-18T11:40:55.0981659Z ipaclient/install/client.py:1466: [E1101(no-member), verify_dns_update] Module 'dns.rdatatype' has no 'PTR' member)
2020-08-18T11:40:55.0982396Z ipaclient/install/client.py:2080: [W0612(unused-variable), install_check] Unused variable 'fstore')
2020-08-18T11:40:55.0988623Z ipaclient/install/client.py:3203: [W0612(unused-variable), uninstall_check] Unused variable 'fstore')
2020-08-18T11:40:55.0989420Z ipatests/test_ipapython/test_dnsutil.py:29: [E1101(no-member), mkuri] Module 'dns.rdatatype' has no 'URI' member)

Pylint 2.6.0 introduces new checks:
- raise-missing-from
- super-with-arguments

There are tons of identical messages.

lib/python3.8/site-packages/ipapython/ipautil.py:789: [R1725(super-with-arguments), GeneralizedTimeZone.__init__] Consider using Python 3 style super() without arguments)
lib/python3.8/site-packages/ipapython/ipautil.py:979: [W0707(raise-missing-from), user_input] Consider explicitly re-raising using the 'from' keyword)

http://pylint.pycqa.org/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-6-0

master:

  • de105aa pylint: Teach pylint about more RRs types
  • 6e85872 pylint: Fix warning W0612(unused-variable)
  • ec6369c pylint: Ignore super-with-arguments
  • 8831b9b pylint: Ignore raise-missing-from

ipa-4-8:

  • 8c7414a pylint: Teach pylint about more RRs types
  • a283196 pylint: Fix warning W0612(unused-variable)
  • 31e16f7 pylint: Ignore super-with-arguments
  • ffbbc30 pylint: Ignore raise-missing-from

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

3 years ago

ipa-4-6:

  • b80b12a pylint: Ignore super-with-arguments
  • 5889fc9 pylint: Ignore raise-missing-from

Login to comment on this ticket.

Metadata