Skip to content

Commit 263bbe6

Browse files
authored
format all (#4885)
1 parent 5eef341 commit 263bbe6

File tree

12 files changed

+949
-692
lines changed

12 files changed

+949
-692
lines changed

Diff for: package/MDAnalysis/__init__.py

+31-17
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@
150150
151151
"""
152152

153-
__all__ = ['Universe', 'Writer',
154-
'AtomGroup', 'ResidueGroup', 'SegmentGroup']
153+
__all__ = ["Universe", "Writer", "AtomGroup", "ResidueGroup", "SegmentGroup"]
155154

156155
import logging
157156
import warnings
@@ -161,10 +160,11 @@
161160
logger = logging.getLogger("MDAnalysis.__init__")
162161

163162
from .version import __version__
163+
164164
try:
165165
from .authors import __authors__
166166
except ImportError:
167-
logger.info('Could not find authors.py, __authors__ will be empty.')
167+
logger.info("Could not find authors.py, __authors__ will be empty.")
168168
__authors__ = []
169169

170170
# Registry of Readers, Parsers and Writers known to MDAnalysis
@@ -178,16 +178,23 @@
178178
_SELECTION_WRITERS: Dict = {}
179179
_CONVERTERS: Dict = {}
180180
# Registry of TopologyAttributes
181-
_TOPOLOGY_ATTRS: Dict = {} # {attrname: cls}
182-
_TOPOLOGY_TRANSPLANTS: Dict = {} # {name: [attrname, method, transplant class]}
183-
_TOPOLOGY_ATTRNAMES: Dict = {} # {lower case name w/o _ : name}
181+
_TOPOLOGY_ATTRS: Dict = {} # {attrname: cls}
182+
_TOPOLOGY_TRANSPLANTS: Dict = (
183+
{}
184+
) # {name: [attrname, method, transplant class]}
185+
_TOPOLOGY_ATTRNAMES: Dict = {} # {lower case name w/o _ : name}
184186
_GUESSERS: Dict = {}
185187

186188
# custom exceptions and warnings
187189
from .exceptions import (
188-
SelectionError, NoDataError, ApplicationError, SelectionWarning,
189-
MissingDataWarning, ConversionWarning, FileFormatWarning,
190-
StreamWarning
190+
SelectionError,
191+
NoDataError,
192+
ApplicationError,
193+
SelectionWarning,
194+
MissingDataWarning,
195+
ConversionWarning,
196+
FileFormatWarning,
197+
StreamWarning,
191198
)
192199

193200
from .lib import log
@@ -197,8 +204,9 @@
197204
del logging
198205

199206
# only MDAnalysis DeprecationWarnings are loud by default
200-
warnings.filterwarnings(action='once', category=DeprecationWarning,
201-
module='MDAnalysis')
207+
warnings.filterwarnings(
208+
action="once", category=DeprecationWarning, module="MDAnalysis"
209+
)
202210

203211

204212
from . import units
@@ -213,11 +221,17 @@
213221

214222
from .due import due, Doi, BibTeX
215223

216-
due.cite(Doi("10.25080/majora-629e541a-00e"),
217-
description="Molecular simulation analysis library",
218-
path="MDAnalysis", cite_module=True)
219-
due.cite(Doi("10.1002/jcc.21787"),
220-
description="Molecular simulation analysis library",
221-
path="MDAnalysis", cite_module=True)
224+
due.cite(
225+
Doi("10.25080/majora-629e541a-00e"),
226+
description="Molecular simulation analysis library",
227+
path="MDAnalysis",
228+
cite_module=True,
229+
)
230+
due.cite(
231+
Doi("10.1002/jcc.21787"),
232+
description="Molecular simulation analysis library",
233+
path="MDAnalysis",
234+
cite_module=True,
235+
)
222236

223237
del Doi, BibTeX

Diff for: package/MDAnalysis/lib/distances.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def self_distance_array(
403403
for j in range(i + 1, n):
404404
dist[i, j] = dist[j, i] = d[k]
405405
k += 1
406-
406+
407407
.. versionchanged:: 0.13.0
408408
Added *backend* keyword.
409409
.. versionchanged:: 0.19.0

0 commit comments

Comments
 (0)