Skip to content

Commit 9044fe4

Browse files
committed
Drop pylint
Followup 29e6131
1 parent 8d4a1aa commit 9044fe4

File tree

11 files changed

+3
-22
lines changed

11 files changed

+3
-22
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ install:
88
- pip install tox
99
jobs:
1010
include:
11-
- stage: lint
12-
script: tox -e pylint
13-
name: pylint
1411
- script: tox -e flake8
1512
name: flake8
1613
- script: tox -e check-manifest

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ include doc/Makefile
77
include tox.ini
88
include Makefile
99
include README.rst CONTRIBUTING.rst CHANGELOG.rst
10-
include pylintrc
1110
include MANIFEST.in
1211
include ansible.cfg
1312
include dev-requirements.txt

testinfra/backend/winrm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222

2323
import winrm.protocol
2424

25-
# pylint: disable=no-member
2625
_find_unsafe = re.compile(r'[^\w@%+=:,./-]', re.ASCII)
27-
# pylint: enable=no-member
2826

2927

3028
# (gtmanfred) This is copied from pipes.quote, but changed to use double quotes

testinfra/host.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def run_expect(self, expected, command, *args, **kwargs):
8080
:param expected: A list of expected exit status
8181
:raises: AssertionError
8282
"""
83-
__tracebackhide__ = True # pylint: disable=unused-variable
83+
__tracebackhide__ = True
8484
out = self.run(command, *args, **kwargs)
8585
assert out.rc in expected, (
8686
'Unexpected exit code %s for %s' % (out.rc, out))
@@ -99,7 +99,7 @@ def check_output(self, command, *args, **kwargs):
9999
:returns: stdout without trailing newline
100100
:raises: AssertionError
101101
"""
102-
__tracebackhide__ = True # pylint: disable=unused-variable
102+
__tracebackhide__ = True
103103
out = self.run(command, *args, **kwargs)
104104
assert out.rc == 0, (
105105
'Unexpected exit code %s for %s' % (out.rc, out))

testinfra/modules/addr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def __init__(self, addr, port):
2020

2121
@property
2222
def is_reachable(self):
23-
# pylint: disable=protected-access
2423
if not self._addr._host.exists('nc'):
2524
# Fallback to bash if netcat is not available
2625
return self._addr.run_expect(

testinfra/modules/ansible.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def __init__(self, result):
3737
def need_ansible(func):
3838
@functools.wraps(func)
3939
def wrapper(self, *args, **kwargs):
40-
# pylint: disable=protected-access
4140
if not self._host.backend.HAS_RUN_ANSIBLE:
4241
raise RuntimeError((
4342
"Ansible module is only available with ansible "
@@ -101,7 +100,6 @@ class Ansible(InstanceModule):
101100
# Installs neovim and vim.
102101
103102
"""
104-
# pylint: disable=self-assigning-variable
105103
AnsibleException = AnsibleException
106104

107105
@need_ansible

testinfra/modules/package.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def __repr__(self):
6161
return "<package %s>" % (self.name,)
6262

6363
@classmethod
64-
# pylint: disable=too-many-return-statements
6564
def get_module_class(cls, host):
6665
if host.system_info.type == 'windows':
6766
return ChocolateyPackage

testinfra/modules/service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def is_enabled(self):
4242
"""Test if service is enabled"""
4343
raise NotImplementedError
4444

45-
# pylint: disable=too-many-return-statements
4645
@classmethod
4746
def get_module_class(cls, host):
4847
if host.system_info.type == "linux":

testinfra/modules/socket.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def get_listening_sockets(cls):
165165
['tcp://0.0.0.0:22', 'tcp://:::22', 'unix:///run/systemd/private', ...]
166166
"""
167167
sockets = []
168-
# pylint: disable=protected-access
169168
for sock in cls(None)._iter_sockets(True):
170169
if sock[0] == "unix":
171170
sockets.append("unix://" + sock[1])

testinfra/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
12-
# pylint: disable=redefined-outer-name
1312

1413
import logging
1514
import shutil

0 commit comments

Comments
 (0)