Commit 748cedaf authored by Jason Madden's avatar Jason Madden

Lint.

parent 03926ad2
...@@ -228,14 +228,6 @@ jobs: ...@@ -228,14 +228,6 @@ jobs:
python -c 'import gevent.ares; print(gevent.ares)' python -c 'import gevent.ares; print(gevent.ares)'
ccache -s ccache -s
- name: Lint
if: matrix.python-version == '3.10' && startsWith(runner.os, 'Linux')
# We only need to do this on one version.
# We do this here rather than a separate job to avoid the compilation overhead.
# TODO: Revisit this when we have caching of that part.
run: |
pip install -U pylint
python -m pylint --rcfile=.pylintrc gevent
- name: "Tests: Basic" - name: "Tests: Basic"
run: | run: |
python -m gevent.tests --second-chance $G_USE_COV python -m gevent.tests --second-chance $G_USE_COV
...@@ -314,6 +306,17 @@ jobs: ...@@ -314,6 +306,17 @@ jobs:
flag-name: run-${{ join(matrix.*, '-') }} flag-name: run-${{ join(matrix.*, '-') }}
parallel: true parallel: true
- name: Lint
if: matrix.python-version == '3.10' && startsWith(runner.os, 'Linux')
# We only need to do this on one version.
# We do this here rather than a separate job to avoid the compilation overhead.
# 20230707: Python 3.11 crashes inside pylint/astroid on _ssl3.py;
# reverting to Python 3.10 solved that.
# TODO: Revisit this when we have caching of that part.
run: |
pip install -U pylint
python -m pylint --rcfile=.pylintrc gevent
coveralls_finish: coveralls_finish:
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
...@@ -18,6 +18,7 @@ class TestPickle(greentest.TestCase): ...@@ -18,6 +18,7 @@ class TestPickle(greentest.TestCase):
dumped = pickle.dumps(r, protocol) dumped = pickle.dumps(r, protocol)
loaded = pickle.loads(dumped) loaded = pickle.loads(dumped)
self.assertEqual(r, loaded) self.assertEqual(r, loaded)
# pylint:disable=no-member
self.assertEqual(r.family, loaded.family) self.assertEqual(r.family, loaded.family)
......
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