diff --git a/docs/source/conf.py b/docs/source/conf.py index b86e8e3..c5cdd24 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# diffpy.srxplanar documentation build configuration file, created by # noqa: E501 +# diffpy.srxplanar documentation build configuration file, created by # sphinx-quickstart on Thu Jan 30 15:49:41 2014. # # This file is execfile()d with the current directory set to its @@ -22,11 +22,11 @@ try: fullversion = version("diffpy.srxplanar") except Exception: - fullversion = "No version found. The correct version will appear in the released version." # noqa: E501 + fullversion = "No version found. The correct version will appear in the released version." # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the -# documentation root, use Path().resolve() to make it absolute, like shown here. # noqa: E501 +# documentation root, use Path().resolve() to make it absolute, like shown here. # sys.path.insert(0, str(Path(".").resolve())) sys.path.insert(0, str(Path("../..").resolve())) sys.path.insert(0, str(Path("../../src").resolve())) diff --git a/news/remove-noqa.rst b/news/remove-noqa.rst new file mode 100644 index 0000000..8aaa013 --- /dev/null +++ b/news/remove-noqa.rst @@ -0,0 +1,23 @@ +**Added:** + +* No news added: Removed noqa comments + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/src/diffpy/srxplanar/selfcalibrate.py b/src/diffpy/srxplanar/selfcalibrate.py index 2c3ea7b..136aedc 100644 --- a/src/diffpy/srxplanar/selfcalibrate.py +++ b/src/diffpy/srxplanar/selfcalibrate.py @@ -1,24 +1,17 @@ from functools import partial import numpy as np -from matplotlib import rcParams from scipy.optimize import leastsq, minimize -rcParams["backend"] = "Qt4Agg" try: - import PySide # noqa: F401 + from matplotlib import rcParams - rcParams["backend.qt4"] = "PySide" + rcParams["backend"] = "QtAgg" import matplotlib.pyplot as plt mplenabled = True except ImportError: - try: - import matplotlib.pyplot as plt - - mplenabled = True - except ImportError: - mplenabled = False + mplenabled = False def halfcut( diff --git a/src/diffpy/srxplanar/srxplanarconfig.py b/src/diffpy/srxplanar/srxplanarconfig.py index 0f8b5fe..b616587 100644 --- a/src/diffpy/srxplanar/srxplanarconfig.py +++ b/src/diffpy/srxplanar/srxplanarconfig.py @@ -505,7 +505,8 @@ class SrXplanarConfig(ConfigBase): - """Config class, based on ConfigBase class in diffpy.srxconfutils.""" + """Config class, based on ConfigBase class in + diffpy.srxconfutils.""" # Text to display before the argument help _description = _description diff --git a/src/diffpy/srxplanar/version.py b/src/diffpy/srxplanar/version.py index 3523646..0cdb9ed 100644 --- a/src/diffpy/srxplanar/version.py +++ b/src/diffpy/srxplanar/version.py @@ -7,7 +7,7 @@ # File coded by: Xiaohao Yang, Simon Billinge, Billinge Group members. # # See GitHub contributions for a more detailed list of contributors. -# https://github.com/diffpy/diffpy.srxplanar/graphs/contributors # noqa: E501 +# https://github.com/diffpy/diffpy.srxplanar/graphs/contributors # # See LICENSE.rst for license information. #