update pylint (#28395)

* update pylint

* update config

* fix
old-commit-hash: e276d2a417
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 78268323cd
commit 91a47d61c5
  1. 4
      .pylintrc
  2. 4
      poetry.lock
  3. 6
      system/sensord/rawgps/rawgpsd.py

@ -3,7 +3,7 @@
# A comma-separated list of package or module names from where C extensions may # A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may # be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code # run arbitrary code
extension-pkg-whitelist=scipy,cereal.messaging.messaging_pyx,PyQt5,av extension-pkg-whitelist=scipy,cereal.messaging.messaging_pyx,PyQt5,av,pycurl
# Add files or directories to the blacklist. They should be base names, not # Add files or directories to the blacklist. They should be base names, not
# paths. # paths.
@ -466,4 +466,4 @@ check-str-concat-over-line-jumps=yes
# Exceptions that will emit a warning when being caught. Defaults to # Exceptions that will emit a warning when being caught. Defaults to
# "Exception" # "Exception"
overgeneral-exceptions=Exception overgeneral-exceptions=

4
poetry.lock generated

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:bb48f48023b4392f9c94321829a88824908623c6a1ca7443e5534ed845e1093e oid sha256:1661562b0d58e4808faa23d86c5a0b3d174cf9d49511ed35dc1dc502def0865a
size 638741 size 638789

@ -117,11 +117,11 @@ def download_and_inject_assistance():
# download assistance # download assistance
try: try:
c = pycurl.Curl() c = pycurl.Curl()
c.setopt(c.URL, assistance_url) c.setopt(pycurl.URL, assistance_url)
c.setopt(c.NOBODY, 1) c.setopt(pycurl.NOBODY, 1)
c.setopt(pycurl.CONNECTTIMEOUT, 2) c.setopt(pycurl.CONNECTTIMEOUT, 2)
c.perform() c.perform()
bytes_n = c.getinfo(c.CONTENT_LENGTH_DOWNLOAD) bytes_n = c.getinfo(pycurl.CONTENT_LENGTH_DOWNLOAD)
c.close() c.close()
if bytes_n > 1e5: if bytes_n > 1e5:
cloudlog.error("Qcom assistance data larger than expected") cloudlog.error("Qcom assistance data larger than expected")

Loading…
Cancel
Save