pre-commit autoupdate
This commit is contained in:
parent
8449294e5d
commit
da2e092163
|
@ -1,16 +1,16 @@
|
||||||
exclude: doc/en/example/py2py3/test_py2.py
|
exclude: doc/en/example/py2py3/test_py2.py
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: 18.9b0
|
rev: 19.3b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--safe, --quiet]
|
args: [--safe, --quiet]
|
||||||
language_version: python3
|
language_version: python3
|
||||||
- repo: https://github.com/asottile/blacken-docs
|
- repo: https://github.com/asottile/blacken-docs
|
||||||
rev: v0.3.0
|
rev: v0.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: blacken-docs
|
- id: blacken-docs
|
||||||
additional_dependencies: [black==18.9b0]
|
additional_dependencies: [black==19.3b0]
|
||||||
language_version: python3
|
language_version: python3
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v2.1.0
|
rev: v2.1.0
|
||||||
|
@ -22,22 +22,22 @@ repos:
|
||||||
exclude: _pytest/debugging.py
|
exclude: _pytest/debugging.py
|
||||||
language_version: python3
|
language_version: python3
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.7.0
|
rev: 3.7.7
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
language_version: python3
|
language_version: python3
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/asottile/reorder_python_imports
|
||||||
rev: v1.3.5
|
rev: v1.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
args: ['--application-directories=.:src']
|
args: ['--application-directories=.:src']
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v1.11.1
|
rev: v1.15.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--keep-percent-format]
|
args: [--keep-percent-format]
|
||||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||||
rev: v1.2.0
|
rev: v1.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: rst-backticks
|
- id: rst-backticks
|
||||||
- repo: local
|
- repo: local
|
||||||
|
|
|
@ -16,4 +16,4 @@ run = 'fc("/d")'
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(timeit.timeit(run, setup=setup % imports[0], number=count))
|
print(timeit.timeit(run, setup=setup % imports[0], number=count))
|
||||||
print((timeit.timeit(run, setup=setup % imports[1], number=count)))
|
print(timeit.timeit(run, setup=setup % imports[1], number=count))
|
||||||
|
|
|
@ -853,7 +853,9 @@ class FixtureDef(object):
|
||||||
exceptions.append(sys.exc_info())
|
exceptions.append(sys.exc_info())
|
||||||
if exceptions:
|
if exceptions:
|
||||||
e = exceptions[0]
|
e = exceptions[0]
|
||||||
del exceptions # ensure we don't keep all frames alive because of the traceback
|
del (
|
||||||
|
exceptions
|
||||||
|
) # ensure we don't keep all frames alive because of the traceback
|
||||||
six.reraise(*e)
|
six.reraise(*e)
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|
|
@ -1320,7 +1320,7 @@ class LineMatcher(object):
|
||||||
raise ValueError("line %r not found in output" % fnline)
|
raise ValueError("line %r not found in output" % fnline)
|
||||||
|
|
||||||
def _log(self, *args):
|
def _log(self, *args):
|
||||||
self._log_output.append(" ".join((str(x) for x in args)))
|
self._log_output.append(" ".join(str(x) for x in args))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _log_text(self):
|
def _log_text(self):
|
||||||
|
|
|
@ -1071,9 +1071,7 @@ class TestFixtureUsages(object):
|
||||||
)
|
)
|
||||||
result = testdir.runpytest_inprocess()
|
result = testdir.runpytest_inprocess()
|
||||||
result.stdout.fnmatch_lines(
|
result.stdout.fnmatch_lines(
|
||||||
(
|
"*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'"
|
||||||
"*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_funcarg_parametrized_and_used_twice(self, testdir):
|
def test_funcarg_parametrized_and_used_twice(self, testdir):
|
||||||
|
|
Loading…
Reference in New Issue