Skip to content

Commit da2e092

Browse files
committed
pre-commit autoupdate
1 parent 8449294 commit da2e092

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
exclude: doc/en/example/py2py3/test_py2.py
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: 18.9b0
4+
rev: 19.3b0
55
hooks:
66
- id: black
77
args: [--safe, --quiet]
88
language_version: python3
99
- repo: https://github.com/asottile/blacken-docs
10-
rev: v0.3.0
10+
rev: v0.5.0
1111
hooks:
1212
- id: blacken-docs
13-
additional_dependencies: [black==18.9b0]
13+
additional_dependencies: [black==19.3b0]
1414
language_version: python3
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
1616
rev: v2.1.0
@@ -22,22 +22,22 @@ repos:
2222
exclude: _pytest/debugging.py
2323
language_version: python3
2424
- repo: https://gitlab.com/pycqa/flake8
25-
rev: 3.7.0
25+
rev: 3.7.7
2626
hooks:
2727
- id: flake8
2828
language_version: python3
2929
- repo: https://github.com/asottile/reorder_python_imports
30-
rev: v1.3.5
30+
rev: v1.4.0
3131
hooks:
3232
- id: reorder-python-imports
3333
args: ['--application-directories=.:src']
3434
- repo: https://github.com/asottile/pyupgrade
35-
rev: v1.11.1
35+
rev: v1.15.0
3636
hooks:
3737
- id: pyupgrade
3838
args: [--keep-percent-format]
3939
- repo: https://github.com/pre-commit/pygrep-hooks
40-
rev: v1.2.0
40+
rev: v1.3.0
4141
hooks:
4242
- id: rst-backticks
4343
- repo: local

bench/bench_argcomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
if __name__ == "__main__":
1818
print(timeit.timeit(run, setup=setup % imports[0], number=count))
19-
print((timeit.timeit(run, setup=setup % imports[1], number=count)))
19+
print(timeit.timeit(run, setup=setup % imports[1], number=count))

src/_pytest/fixtures.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,9 @@ def finish(self, request):
853853
exceptions.append(sys.exc_info())
854854
if exceptions:
855855
e = exceptions[0]
856-
del exceptions # ensure we don't keep all frames alive because of the traceback
856+
del (
857+
exceptions
858+
) # ensure we don't keep all frames alive because of the traceback
857859
six.reraise(*e)
858860

859861
finally:

src/_pytest/pytester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ def get_lines_after(self, fnline):
13201320
raise ValueError("line %r not found in output" % fnline)
13211321

13221322
def _log(self, *args):
1323-
self._log_output.append(" ".join((str(x) for x in args)))
1323+
self._log_output.append(" ".join(str(x) for x in args))
13241324

13251325
@property
13261326
def _log_text(self):

testing/python/fixtures.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,9 +1071,7 @@ def test_nothing(badscope):
10711071
)
10721072
result = testdir.runpytest_inprocess()
10731073
result.stdout.fnmatch_lines(
1074-
(
1075-
"*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'"
1076-
)
1074+
"*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'"
10771075
)
10781076

10791077
def test_funcarg_parametrized_and_used_twice(self, testdir):

0 commit comments

Comments
 (0)