Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 29d3cb4

Browse files
committedFeb 24, 2020
MNT: Fix SyntaxError, and disable telemetry for checkspecs.py
1 parent 759918c commit 29d3cb4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎tools/checkspecs.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import sys
99
import warnings
1010

11-
from nipype.interfaces.base import BaseInterface
12-
1311
import black
1412

1513

@@ -182,6 +180,8 @@ def test_specs(self, uri):
182180
Returns
183181
-------
184182
"""
183+
from nipype.interfaces.base import BaseInterface
184+
185185
# get the names of all classes and functions
186186
_, classes = self._parse_module(uri)
187187
if not classes:
@@ -324,7 +324,7 @@ def test_specs(self, uri):
324324
and "xor" not in trait.__dict__
325325
):
326326
if (
327-
trait.trait_type.__class__.__name__ is "Range"
327+
trait.trait_type.__class__.__name__ == "Range"
328328
and trait.default == trait.trait_type._low
329329
):
330330
continue
@@ -480,6 +480,7 @@ def check_modules(self):
480480

481481

482482
if __name__ == "__main__":
483+
os.environ["NIPYPE_NO_ET"] = "1"
483484
package = "nipype"
484485
ic = InterfaceChecker(package)
485486
# Packages that should not be included in generated API docs.

0 commit comments

Comments
 (0)
Please sign in to comment.