Skip to content

Commit 128a795

Browse files
digitronikNikhil
authored andcommitted
update pre-commit hooks and apply
1 parent e645930 commit 128a795

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
repos:
33
- repo: https://github.com/psf/black
4-
rev: 19.10b0
4+
rev: 20.8b1
55
hooks:
66
- id: black
77
args: [--safe, --quiet, --target-version, py36]
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v3.1.0
9+
rev: v3.3.0
1010
hooks:
1111
- id: trailing-whitespace
1212
- id: end-of-file-fixer
@@ -16,18 +16,18 @@ repos:
1616
- id: debug-statements
1717
language_version: python3
1818
- repo: https://gitlab.com/pycqa/flake8
19-
rev: 3.8.3
19+
rev: 3.8.4
2020
hooks:
2121
- id: flake8
2222
language_version: python3
2323
additional_dependencies: [flake8-typing-imports==1.9.0]
2424
- repo: https://github.com/asottile/reorder_python_imports
25-
rev: v2.3.2
25+
rev: v2.3.6
2626
hooks:
2727
- id: reorder-python-imports
2828
args: ['--application-directories=.:src', --py3-plus]
2929
- repo: https://github.com/asottile/pyupgrade
30-
rev: v2.7.1
30+
rev: v2.7.4
3131
hooks:
3232
- id: pyupgrade
3333
args: [--py36-plus]

pytest_rerunfailures.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,13 @@ def pytest_runtest_protocol(item, nextitem):
297297

298298

299299
def pytest_report_teststatus(report):
300-
"""Adapted from https://pytest.org/latest/_modules/_pytest/skipping.html
301-
"""
300+
"""Adapted from https://pytest.org/latest/_modules/_pytest/skipping.html"""
302301
if report.outcome == "rerun":
303302
return "rerun", "R", ("RERUN", {"yellow": True})
304303

305304

306305
def pytest_terminal_summary(terminalreporter):
307-
"""Adapted from https://pytest.org/latest/_modules/_pytest/skipping.html
308-
"""
306+
"""Adapted from https://pytest.org/latest/_modules/_pytest/skipping.html"""
309307
tr = terminalreporter
310308
if not tr.reportchars:
311309
return

test_pytest_rerunfailures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def check_outcome_field(outcomes, field_name, expected_value):
3232

3333

3434
def assert_outcomes(
35-
result, passed=1, skipped=0, failed=0, error=0, xfailed=0, xpassed=0, rerun=0
35+
result, passed=1, skipped=0, failed=0, error=0, xfailed=0, xpassed=0, rerun=0,
3636
):
3737
outcomes = result.parseoutcomes()
3838
check_outcome_field(outcomes, "passed", passed)
@@ -324,7 +324,7 @@ def test_fail_two():
324324

325325
def test_rerun_on_setup_class_with_error_with_reruns(testdir):
326326
"""
327-
Case: setup_class throwing error on the first execution for parametrized test
327+
Case: setup_class throwing error on the first execution for parametrized test
328328
"""
329329
testdir.makepyfile(
330330
"""

0 commit comments

Comments
 (0)