Skip to content

Commit

Permalink
🗑️ flake8 F401 imported but unused (pyvista#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 authored Feb 10, 2020
1 parent a727d44 commit a083e43
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 19 deletions.
2 changes: 0 additions & 2 deletions examples/00-load/read-file.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# sphinx_gallery_thumbnail_number = 5
import pyvista as pv
from pyvista import examples
import numpy as np
import matplotlib.pyplot as plt

###############################################################################
# The following code block uses a built-in example
Expand Down
1 change: 0 additions & 1 deletion examples/00-load/read-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Read and plot image files (JPEG, TIFF, PNG, etc).
"""
import pyvista as pv
from pyvista import examples

###############################################################################
Expand Down
1 change: 0 additions & 1 deletion examples/01-filter/compute-volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# sphinx_gallery_thumbnail_number = 4
import numpy as np
import pyvista as pv
from pyvista import examples

###############################################################################
Expand Down
1 change: 0 additions & 1 deletion examples/01-filter/project-plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"""

# sphinx_gallery_thumbnail_number = 2
import numpy as np
import pyvista as pv
from pyvista import examples

Expand Down
1 change: 0 additions & 1 deletion examples/01-filter/surface-smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

# sphinx_gallery_thumbnail_number = 4
import pyvista as pv
from pyvista import examples

###############################################################################
Expand Down
1 change: 0 additions & 1 deletion examples/02-plot/image_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Plot a depth image as viewed from a camera overlooking the "hills" example mesh.
"""
# sphinx_gallery_thumbnail_number = 2
import numpy as np
import pyvista as pv
import matplotlib.pyplot as plt
from pyvista import examples
Expand Down
1 change: 0 additions & 1 deletion examples/02-plot/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# sphinx_gallery_thumbnail_number = 2
import pyvista as pv
from pyvista import examples
import numpy as np
import matplotlib.pyplot as plt

# Get a sample file
Expand Down
4 changes: 2 additions & 2 deletions pyvista/plotting/qt_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class QObject(object):
from PyQt5 import QtCore
from PyQt5.QtWidgets import (QMenuBar, QVBoxLayout, QHBoxLayout, QDoubleSpinBox,
QFrame, QMainWindow, QSlider, QAction,
QSpinBox, QHBoxLayout, QDialog,
QFormLayout, QGroupBox, QFileDialog)
QHBoxLayout, QDialog,
QFormLayout, QFileDialog)
has_pyqt = True
except ImportError: # pragma: no cover
pass
Expand Down
1 change: 0 additions & 1 deletion pyvista/utilities/parametric_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import vtk

import pyvista
from pyvista.utilities import assert_empty_kwargs

from .geometric_objects import translate

Expand Down
1 change: 0 additions & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
from subprocess import PIPE, Popen

import numpy as np
import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np
import pytest
import vtk

import pyvista
from pyvista import examples as ex
Expand Down
2 changes: 0 additions & 2 deletions tests/test_objects.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Tests for non-spatially referenced objects
"""
import sys

import numpy as np
import pytest
import vtk
Expand Down
3 changes: 0 additions & 3 deletions tests/test_qt_plotting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import os
import sys
import time

import numpy as np
import pytest
Expand All @@ -14,7 +12,6 @@


try:
import PyQt5
from PyQt5.Qt import (QMainWindow, QFrame, QVBoxLayout, QAction)
has_pyqt5 = True
except:
Expand Down
1 change: 0 additions & 1 deletion tests/test_widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import pytest
import sys

import pyvista
from pyvista import examples
Expand Down

0 comments on commit a083e43

Please sign in to comment.