Skip to content

Commit a9008ff

Browse files
authored
Merge pull request #38 from zmx27/remove-noqa
chore: remove noqas introduced during skpkging
2 parents ad43104 + bfd86da commit a9008ff

File tree

5 files changed

+32
-15
lines changed

5 files changed

+32
-15
lines changed

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# diffpy.srxplanar documentation build configuration file, created by # noqa: E501
4+
# diffpy.srxplanar documentation build configuration file, created by
55
# sphinx-quickstart on Thu Jan 30 15:49:41 2014.
66
#
77
# This file is execfile()d with the current directory set to its
@@ -22,11 +22,11 @@
2222
try:
2323
fullversion = version("diffpy.srxplanar")
2424
except Exception:
25-
fullversion = "No version found. The correct version will appear in the released version." # noqa: E501
25+
fullversion = "No version found. The correct version will appear in the released version."
2626

2727
# If extensions (or modules to document with autodoc) are in another directory,
2828
# add these directories to sys.path here. If the directory is relative to the
29-
# documentation root, use Path().resolve() to make it absolute, like shown here. # noqa: E501
29+
# documentation root, use Path().resolve() to make it absolute, like shown here.
3030
# sys.path.insert(0, str(Path(".").resolve()))
3131
sys.path.insert(0, str(Path("../..").resolve()))
3232
sys.path.insert(0, str(Path("../../src").resolve()))

news/remove-noqa.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* No news added: Removed noqa comments
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/srxplanar/selfcalibrate.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
from functools import partial
22

33
import numpy as np
4-
from matplotlib import rcParams
54
from scipy.optimize import leastsq, minimize
65

7-
rcParams["backend"] = "Qt4Agg"
86
try:
9-
import PySide # noqa: F401
7+
from matplotlib import rcParams
108

11-
rcParams["backend.qt4"] = "PySide"
9+
rcParams["backend"] = "QtAgg"
1210
import matplotlib.pyplot as plt
1311

1412
mplenabled = True
1513
except ImportError:
16-
try:
17-
import matplotlib.pyplot as plt
18-
19-
mplenabled = True
20-
except ImportError:
21-
mplenabled = False
14+
mplenabled = False
2215

2316

2417
def halfcut(

src/diffpy/srxplanar/srxplanarconfig.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@
505505

506506

507507
class SrXplanarConfig(ConfigBase):
508-
"""Config class, based on ConfigBase class in diffpy.srxconfutils."""
508+
"""Config class, based on ConfigBase class in
509+
diffpy.srxconfutils."""
509510

510511
# Text to display before the argument help
511512
_description = _description

src/diffpy/srxplanar/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# File coded by: Xiaohao Yang, Simon Billinge, Billinge Group members.
88
#
99
# See GitHub contributions for a more detailed list of contributors.
10-
# https://github.com/diffpy/diffpy.srxplanar/graphs/contributors # noqa: E501
10+
# https://github.com/diffpy/diffpy.srxplanar/graphs/contributors
1111
#
1212
# See LICENSE.rst for license information.
1313
#

0 commit comments

Comments
 (0)