Skip to content

Commit

Permalink
More warning suppression for landscape/prospector.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 10, 2016
1 parent 53f766f commit e52414d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .landscape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ ignore-patterns:

pyroma:
run: true

pyflakes:
disable:
# F821: undefined name; caught better by pylint, where it can be
# controlled for the whole file/per-line
- F821
4 changes: 4 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ disable=wrong-import-position,
global-statement,
# "from gevent import monkey; monkey.patch_all()"
multiple-statements,
# yes, we know we're doing this. don't replace one warning with another
locally-disabled,
# most of these are deferred imports
cyclic-import,

[FORMAT]
# duplicated from setup.cfg
Expand Down
5 changes: 5 additions & 0 deletions gevent/_socket2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"""
Python 2 socket module.
"""
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable

import time
from gevent import _socketcommon
from gevent.hub import PYPY
Expand Down Expand Up @@ -510,6 +513,8 @@ def fromfd(*args):
def ssl(sock, keyfile=None, certfile=None):
# deprecated in 2.7.9 but still present;
# sometimes backported by distros. See ssl.py
# Note that we import gevent.ssl, not _ssl2, to get the correct
# version.
from gevent import ssl as _sslmod
# wrap_socket is 2.7.9/backport, sslwrap_simple is older. They take
# the same arguments.
Expand Down
3 changes: 3 additions & 0 deletions gevent/_socket3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"""
Python 3 socket module.
"""
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable

import io
import os
import sys
Expand Down
3 changes: 3 additions & 0 deletions gevent/_ssl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"""

from __future__ import absolute_import
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable

import ssl as __ssl__

try:
Expand Down
2 changes: 2 additions & 0 deletions gevent/_ssl3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
This module implements cooperative SSL socket wrappers.
"""
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable

from __future__ import absolute_import
import ssl as __ssl__
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
ignore=E702,E265,E402,E731,E266,E261,W503,E129,N801
max_line_length=160
exclude=.runtimes,.eggs,.tox,.git,build,2.6,2.7,2.7pypy,3.3,3.5,test_support.py,test_queue.py,patched_tests_setup.py,test_threading_2.py,lock_tests.py,_sslgte279.py,3.4

[flake8]
# F821: undefined name; caught better by pylint, where it can be locally disabled
ignore=F821

0 comments on commit e52414d

Please sign in to comment.