Skip to content

Commit db24cc5

Browse files
committed
STY: ruff format
1 parent 7dca61f commit db24cc5

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

scpdt/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
__version__ = "0.1"
99

10-
from .impl import DTChecker, DTFinder, DTParser, DTRunner, DebugDTRunner, DTConfig
11-
from .frontend import testmod, testfile, find_doctests, run_docstring_examples
10+
from .impl import DTChecker, DTFinder, DTParser, DTRunner, DebugDTRunner, DTConfig # noqa
11+
from .frontend import testmod, testfile, find_doctests, run_docstring_examples # noqa
1212

scpdt/frontend.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ def testmod(m=None, name=None, globs=None, verbose=None,
229229
runner = DTRunner(verbose=dtverbose, optionflags=flags, config=config)
230230

231231
### Find, parse, and run all tests in the given module.
232-
tests = find_doctests(m, strategy, name, exclude_empty, globs, extraglobs, config=config)
232+
tests = find_doctests(
233+
m, strategy, name, exclude_empty, globs, extraglobs, config=config
234+
)
233235

234236
for test in tests:
235237
if verbose == 1:
@@ -356,9 +358,13 @@ def testfile(filename, module_relative=True, name=None, package=None,
356358
# Fail fast or run all tests
357359
verbose, dtverbose = _map_verbosity(verbose)
358360
if raise_on_error:
359-
runner = DebugDTRunner(verbose=dtverbose, optionflags=optionflags, config=config)
361+
runner = DebugDTRunner(
362+
verbose=dtverbose, optionflags=optionflags, config=config
363+
)
360364
else:
361-
runner = DTRunner(verbose=dtverbose, optionflags=optionflags, config=config)
365+
runner = DTRunner(
366+
verbose=dtverbose, optionflags=optionflags, config=config
367+
)
362368

363369
### Parse doctest examples out of the input file and run them.
364370
if parser is None:

scpdt/impl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ class DebugDTRunner(DTRunner):
386386
Almost verbatim copy of `doctest.DebugRunner`.
387387
"""
388388
def run(self, test, compileflags=None, out=None, clear_globs=True):
389-
r = super().run(test, compileflags=compileflags, out=out, clear_globs=clear_globs)
389+
r = super().run(
390+
test, compileflags=compileflags, out=out, clear_globs=clear_globs
391+
)
390392
if clear_globs:
391393
test.globs.clear()
392394
return r

0 commit comments

Comments
 (0)