Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent ead73d6 commit 7d77627
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions nose2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def parseArgs(self, argv):
self.argparse.add_argument("testNames", nargs="*")
# add help arg now so -h will also print plugin opts
self.argparse.add_argument(
"-h", "--help", action="help", help=("Show this help message and exit")
"-h", "--help", action="help", help="Show this help message and exit"
)
args, argv = self.argparse.parse_known_args(argv)
if argv:
Expand Down Expand Up @@ -185,7 +185,7 @@ def setInitialArguments(self):
self.argparse.add_argument(
"--verbosity",
type=int,
help=("Set starting verbosity level (int). Applies before -v and -q"),
help="Set starting verbosity level (int). Applies before -v and -q",
)
self.argparse.add_argument(
"--verbose",
Expand All @@ -203,7 +203,7 @@ def setInitialArguments(self):
action="count",
default=0,
dest="quiet",
help=("Reduce verbosity. Multiple '-q's result in lower verbosity."),
help="Reduce verbosity. Multiple '-q's result in lower verbosity.",
)
self.argparse.add_argument(
"--log-level",
Expand Down Expand Up @@ -305,7 +305,7 @@ def runTests(self):
self.result = runner.run(self.test)
except Exception as e:
log.exception("Internal Error")
sys.stderr.write("Internal Error: runTests aborted: %s\n" % (e))
sys.stderr.write("Internal Error: runTests aborted: %s\n" % e)
if self.exit:
sys.exit(1)
if self.exit:
Expand Down
2 changes: 1 addition & 1 deletion nose2/sphinxext.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def add_config(self, rst, config, plugin):
rst.append(" [%s]" % config.section, AD)
for var in sorted(config.vars.keys()):
info = config.vars[var]
entry = " %s = " % (var)
entry = " %s = " % var
if info["type"] == "list":
if info["default"]:
pad = " " * len(entry)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ class TestFoo(unittest.TestCase):
def test_ohnoez(self):
x = self
# fmt: off
assert x.x != (self
).x
assert x.x != self.x
# fmt: on

0 comments on commit 7d77627

Please sign in to comment.