Commit 4693d3fa authored by Jason Madden's avatar Jason Madden

Tweaks for pylint

parent 6966479f
[MASTER] [MASTER]
extension-pkg-whitelist=gevent.greenlet,gevent.libuv._corecffi,gevent.libev._corecffi,gevent.local,gevent._ident extension-pkg-whitelist=gevent.greenlet,gevent.libuv._corecffi,gevent.libev._corecffi,gevent.libev._corecffi.lib,gevent.local,gevent._ident
# Control the amount of potential inferred values when inferring a single # Control the amount of potential inferred values when inferring a single
# object. This can help the performance when dealing with large functions or # object. This can help the performance when dealing with large functions or
......
...@@ -286,8 +286,8 @@ jobs: ...@@ -286,8 +286,8 @@ jobs:
# requirements file. # requirements file.
install: pip install -U pylint install: pip install -U pylint
script: python -m pylint --limit-inference-results=1 --rcfile=.pylintrc gevent script: python -m pylint --limit-inference-results=1 --rcfile=.pylintrc gevent
env: TRAVIS_PYTHON_VERSION=3.7 env: TRAVIS_PYTHON_VERSION=3.8
name: lint37 name: Run pylint on Python 3.8
# Now the various functional test groups. # Now the various functional test groups.
# We organize these by interpreter, rather than functional test group, # We organize these by interpreter, rather than functional test group,
...@@ -300,30 +300,30 @@ jobs: ...@@ -300,30 +300,30 @@ jobs:
- &test-ares-jobs - &test-ares-jobs
stage: test stage: test
script: GEVENT_RESOLVER=ares python -mgevent.tests --ignore tests_that_dont_use_resolver.txt script: GEVENT_RESOLVER=ares python -mgevent.tests --ignore tests_that_dont_use_resolver.txt
name: ares27 name: c-ares resolver (Python 2.7)
# Run dnspython with coverage enabled, it's implemented in python whereas ares is C. # Run dnspython with coverage enabled, it's implemented in python whereas ares is C.
# PyPy is supported. # PyPy is supported.
- &test-dnspython-jobs - &test-dnspython-jobs
script: GEVENT_RESOLVER=dnspython python -mgevent.tests --coverage --ignore tests_that_dont_use_resolver.txt script: GEVENT_RESOLVER=dnspython python -mgevent.tests --coverage --ignore tests_that_dont_use_resolver.txt
name: dnspython27 name: dnspython resolver (Python 2.7)
# Now test the alternate backends, starting with libuv-cffi, which should be present everywhere # Now test the alternate backends, starting with libuv-cffi, which should be present everywhere
- &test-libuv-jobs - &test-libuv-jobs
script: GEVENT_LOOP=libuv python -mgevent.tests --coverage script: GEVENT_LOOP=libuv python -mgevent.tests --coverage
name: libuv27 name: libuv backend (Python 2.7)
# Next the libev-cffi backend, which is only needed on CPython (default on PyPy) # Next the libev-cffi backend, which is only needed on CPython (default on PyPy)
- &test-libev-jobs - &test-libev-jobs
script: GEVENT_LOOP=libev-cffi python -mgevent.tests --coverage script: GEVENT_LOOP=libev-cffi python -mgevent.tests --coverage
name: libev-cffi27 name: libev-cffi backend (Python 2.7)
# No compiled cython modules on CPython, using the default backend. Get coverage here. # No compiled cython modules on CPython, using the default backend. Get coverage here.
# We should only need to run this for a single Python 2 and a Python 3 # We should only need to run this for a single Python 2 and a Python 3
- &test-pure-jobs - &test-pure-jobs
script: PURE_PYTHON=1 python -mgevent.tests --coverage script: PURE_PYTHON=1 python -mgevent.tests --coverage
name: pure27 name: No Cython modules (Python 2.7)
# Run the leaktests; this seems to be extremely slow on Python 3.7 # Run the leaktests; this seems to be extremely slow on Python 3.7
# XXX: Figure out why. Can we reproduce locally? # XXX: Figure out why. Can we reproduce locally?
- &test-leak-jobs - &test-leak-jobs
script: GEVENTTEST_LEAKCHECK=1 python -m gevent.tests --ignore tests_that_dont_do_leakchecks.txt script: GEVENTTEST_LEAKCHECK=1 python -m gevent.tests --ignore tests_that_dont_do_leakchecks.txt
name: leak27 name: Checking for reference leaks (Python 2.7)
# Now, in order of the matrix, tests for particular versions. # Now, in order of the matrix, tests for particular versions.
...@@ -335,19 +335,19 @@ jobs: ...@@ -335,19 +335,19 @@ jobs:
# 3.8 # 3.8
- <<: *test-libuv-jobs - <<: *test-libuv-jobs
env: TRAVIS_PYTHON_VERSION=3.9 env: TRAVIS_PYTHON_VERSION=3.9
name: libuv38 name: libuv backend (Python 3.9)
- <<: *test-libev-jobs - <<: *test-libev-jobs
env: TRAVIS_PYTHON_VERSION=3.9 env: TRAVIS_PYTHON_VERSION=3.9
name: libev-cffi38 name: libev-cffi backend (Python 3.9)
- <<: *test-ares-jobs - <<: *test-ares-jobs
env: TRAVIS_PYTHON_VERSION=3.9 env: TRAVIS_PYTHON_VERSION=3.9
name: c-ares resolver on Python 3.9 name: c-ares resolver (Python 3.9)
- <<: *test-dnspython-jobs - <<: *test-dnspython-jobs
env: TRAVIS_PYTHON_VERSION=3.9 env: TRAVIS_PYTHON_VERSION=3.9
name: dnspython resolver on Python 3.9 name: dnspython resolver (Python 3.9)
- <<: *test-pure-jobs - <<: *test-pure-jobs
env: TRAVIS_PYTHON_VERSION=3.9 env: TRAVIS_PYTHON_VERSION=3.9
name: pure-Python on Python 3.9 name: No Cython modules (Python 3.9)
# 2.7, no-embed. Run the tests that exercise the libraries we # 2.7, no-embed. Run the tests that exercise the libraries we
# linked to. # linked to.
...@@ -355,22 +355,22 @@ jobs: ...@@ -355,22 +355,22 @@ jobs:
# This job exercises both the non-embedded ares resolver # This job exercises both the non-embedded ares resolver
# and the non-embedded Cython libev loop. # and the non-embedded Cython libev loop.
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=3 env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=3
name: ares27-noembed name: c-ares resolver, external (Python 2.7)
# These exercise the CFFI versions. # These exercise the CFFI versions.
- <<: *test-libuv-jobs - <<: *test-libuv-jobs
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=3 env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=3
name: libuv27-noembed name: libuv backend, external (Python 2.7)
- <<: *test-libev-jobs - <<: *test-libev-jobs
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=3 env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=3
name: libev27-noembed name: libev backend, external (Python 2.7)
# PyPy 2.7 # PyPy 2.7
- <<: *test-dnspython-jobs - <<: *test-dnspython-jobs
env: TRAVIS_PYTHON_VERSION=pypy2.7 env: TRAVIS_PYTHON_VERSION=pypy2.7
name: dnspythonpypy27 name: dnspython resolver (PyPy 2.7)
- <<: *test-libuv-jobs - <<: *test-libuv-jobs
env: TRAVIS_PYTHON_VERSION=pypy2.7 env: TRAVIS_PYTHON_VERSION=pypy2.7
name: libuvpypy27 name: libuv backend (PyPy 2.7)
notifications: notifications:
email: false email: false
...@@ -139,6 +139,7 @@ class SSLContext(orig_SSLContext): ...@@ -139,6 +139,7 @@ class SSLContext(orig_SSLContext):
if hasattr(orig_SSLContext, 'minimum_version'): if hasattr(orig_SSLContext, 'minimum_version'):
# Like the above, added in 3.7 # Like the above, added in 3.7
# pylint:disable=no-member
@orig_SSLContext.minimum_version.setter @orig_SSLContext.minimum_version.setter
def minimum_version(self, value): def minimum_version(self, value):
super(orig_SSLContext, orig_SSLContext).minimum_version.__set__(self, value) super(orig_SSLContext, orig_SSLContext).minimum_version.__set__(self, value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment