From ef99d3fbf6a6afe6703a80a57c61e3d990ea5c0a Mon Sep 17 00:00:00 2001 From: njessurun Date: Mon, 2 Aug 2021 11:51:28 -0400 Subject: [PATCH] Adds EOF newline to files missing it. Note: intentionally avoids files moved / already adjusted from #1919 --- examples/exampleLoaderTemplate_pyside2.py | 2 +- examples/exampleLoaderTemplate_pyside6.py | 2 +- examples/initExample.py | 2 +- examples/optics/__init__.py | 2 +- examples/verlet_chain/__init__.py | 2 +- pyqtgraph/canvas/__init__.py | 2 +- pyqtgraph/console/__init__.py | 2 +- pyqtgraph/dockarea/__init__.py | 2 +- pyqtgraph/flowchart/__init__.py | 2 +- pyqtgraph/imageview/__init__.py | 2 +- pyqtgraph/ordereddict.py | 2 +- pyqtgraph/util/get_resolution.py | 2 +- pyqtgraph/util/pil_fix.py | 2 +- pyqtgraph/widgets/FeedbackButton.py | 2 +- pyqtgraph/widgets/VerticalLabel.py | 2 +- tests/test_Point.py | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/exampleLoaderTemplate_pyside2.py b/examples/exampleLoaderTemplate_pyside2.py index 7d6bc031..bd16722c 100644 --- a/examples/exampleLoaderTemplate_pyside2.py +++ b/examples/exampleLoaderTemplate_pyside2.py @@ -117,4 +117,4 @@ class Ui_Form(object): self.searchFiles.setItemText(1, QCoreApplication.translate("Form", u"Content Search", None)) self.loadedFileLabel.setText("") - # retranslateUi \ No newline at end of file + # retranslateUi diff --git a/examples/exampleLoaderTemplate_pyside6.py b/examples/exampleLoaderTemplate_pyside6.py index 4b6100c2..b055dff4 100644 --- a/examples/exampleLoaderTemplate_pyside6.py +++ b/examples/exampleLoaderTemplate_pyside6.py @@ -117,4 +117,4 @@ class Ui_Form(object): self.searchFiles.setItemText(1, QCoreApplication.translate("Form", u"Content Search", None)) self.loadedFileLabel.setText("") - # retranslateUi \ No newline at end of file + # retranslateUi diff --git a/examples/initExample.py b/examples/initExample.py index 9b868803..1690d5f7 100644 --- a/examples/initExample.py +++ b/examples/initExample.py @@ -29,4 +29,4 @@ try: import faulthandler faulthandler.enable() except ImportError: - pass \ No newline at end of file + pass diff --git a/examples/optics/__init__.py b/examples/optics/__init__.py index b3d31cd0..031b5ead 100644 --- a/examples/optics/__init__.py +++ b/examples/optics/__init__.py @@ -1 +1 @@ -from .pyoptic import * \ No newline at end of file +from .pyoptic import * diff --git a/examples/verlet_chain/__init__.py b/examples/verlet_chain/__init__.py index f473190f..c316199d 100644 --- a/examples/verlet_chain/__init__.py +++ b/examples/verlet_chain/__init__.py @@ -1 +1 @@ -from .chain import ChainSim \ No newline at end of file +from .chain import ChainSim diff --git a/pyqtgraph/canvas/__init__.py b/pyqtgraph/canvas/__init__.py index f649d0a1..33243fc1 100644 --- a/pyqtgraph/canvas/__init__.py +++ b/pyqtgraph/canvas/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- from .Canvas import * -from .CanvasItem import * \ No newline at end of file +from .CanvasItem import * diff --git a/pyqtgraph/console/__init__.py b/pyqtgraph/console/__init__.py index 16436abd..87ae822a 100644 --- a/pyqtgraph/console/__init__.py +++ b/pyqtgraph/console/__init__.py @@ -1 +1 @@ -from .Console import ConsoleWidget \ No newline at end of file +from .Console import ConsoleWidget diff --git a/pyqtgraph/dockarea/__init__.py b/pyqtgraph/dockarea/__init__.py index f67c50c3..e3a7cbb0 100644 --- a/pyqtgraph/dockarea/__init__.py +++ b/pyqtgraph/dockarea/__init__.py @@ -1,2 +1,2 @@ from .DockArea import DockArea -from .Dock import Dock \ No newline at end of file +from .Dock import Dock diff --git a/pyqtgraph/flowchart/__init__.py b/pyqtgraph/flowchart/__init__.py index 46e04db0..0cb32544 100644 --- a/pyqtgraph/flowchart/__init__.py +++ b/pyqtgraph/flowchart/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- from .Flowchart import * -from .library import getNodeType, registerNodeType, getNodeTree \ No newline at end of file +from .library import getNodeType, registerNodeType, getNodeTree diff --git a/pyqtgraph/imageview/__init__.py b/pyqtgraph/imageview/__init__.py index 47781939..c5d821e0 100644 --- a/pyqtgraph/imageview/__init__.py +++ b/pyqtgraph/imageview/__init__.py @@ -5,4 +5,4 @@ Includes ROI plotting over time and image normalization. from .ImageView import ImageView -__all__ = ['ImageView'] \ No newline at end of file +__all__ = ['ImageView'] diff --git a/pyqtgraph/ordereddict.py b/pyqtgraph/ordereddict.py index b587437b..4c99a631 100644 --- a/pyqtgraph/ordereddict.py +++ b/pyqtgraph/ordereddict.py @@ -9,4 +9,4 @@ class OrderedDict(collections.OrderedDict): DeprecationWarning, stacklevel=2, ) - super().__init__(*args, **kwds) \ No newline at end of file + super().__init__(*args, **kwds) diff --git a/pyqtgraph/util/get_resolution.py b/pyqtgraph/util/get_resolution.py index 421afabe..ed99fa31 100644 --- a/pyqtgraph/util/get_resolution.py +++ b/pyqtgraph/util/get_resolution.py @@ -15,4 +15,4 @@ def test_screenInformation(): if __name__ == "__main__": - test_screenInformation() \ No newline at end of file + test_screenInformation() diff --git a/pyqtgraph/util/pil_fix.py b/pyqtgraph/util/pil_fix.py index 6c0985e9..0a13d880 100644 --- a/pyqtgraph/util/pil_fix.py +++ b/pyqtgraph/util/pil_fix.py @@ -67,4 +67,4 @@ if Image.VERSION == '1.1.6': return frombuffer(mode, size, obj, "raw", mode, 0, 1) - Image.fromarray=fromarray \ No newline at end of file + Image.fromarray=fromarray diff --git a/pyqtgraph/widgets/FeedbackButton.py b/pyqtgraph/widgets/FeedbackButton.py index 30114d4e..8e84efdd 100644 --- a/pyqtgraph/widgets/FeedbackButton.py +++ b/pyqtgraph/widgets/FeedbackButton.py @@ -160,4 +160,4 @@ if __name__ == '__main__': btn.success(message="Bueno!") btn.clicked.connect(click) win.setCentralWidget(btn) - win.show() \ No newline at end of file + win.show() diff --git a/pyqtgraph/widgets/VerticalLabel.py b/pyqtgraph/widgets/VerticalLabel.py index c5f9332f..039a0de1 100644 --- a/pyqtgraph/widgets/VerticalLabel.py +++ b/pyqtgraph/widgets/VerticalLabel.py @@ -98,4 +98,4 @@ if __name__ == '__main__': l.addWidget(l3, 2, 2) l.addWidget(l4, 3, 3) win.setCentralWidget(w) - win.show() \ No newline at end of file + win.show() diff --git a/tests/test_Point.py b/tests/test_Point.py index ea9a95ed..7b05db0b 100644 --- a/tests/test_Point.py +++ b/tests/test_Point.py @@ -60,4 +60,4 @@ projections = [ def test_Point_projection(p1_arg, p2_arg, projection): p1 = pg.Point(p1_arg) p2 = pg.Point(p2_arg) - p1.proj(p2) == projection \ No newline at end of file + p1.proj(p2) == projection