Skip to content

Commit e09ebfa

Browse files
bump pre-commit deps (#513)
* bump pre-commit deps * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8685d27 commit e09ebfa

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 20.8b1 # also bump this in Pipfile
3+
rev: 22.3.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
77
- repo: https://github.com/asottile/blacken-docs
8-
rev: v1.7.0
8+
rev: v1.12.1
99
hooks:
1010
- id: blacken-docs
11-
additional_dependencies: [black==20.8b1] # also bump this in Pipfile
11+
additional_dependencies: [black==22.3.0]
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v3.1.0
13+
rev: v4.1.0
1414
hooks:
1515
- id: trailing-whitespace
1616
- id: end-of-file-fixer
@@ -19,21 +19,21 @@ repos:
1919
- id: check-yaml
2020
- id: debug-statements
2121
language_version: python3
22-
- repo: https://gitlab.com/pycqa/flake8
23-
rev: 3.8.4 # also bump this in Pipfile
22+
- repo: https://github.com/PyCQA/flake8
23+
rev: 4.0.1
2424
hooks:
2525
- id: flake8
2626
language_version: python3
2727
additional_dependencies:
2828
- flake8-builtins==1.5.3
29-
- flake8-typing-imports==1.9.0
29+
- flake8-typing-imports==1.12.0
3030
- repo: https://github.com/asottile/reorder_python_imports
31-
rev: v2.3.0
31+
rev: v3.0.1
3232
hooks:
3333
- id: reorder-python-imports
3434
args: ["--application-directories=.:src:testing", --py3-plus]
3535
- repo: https://github.com/asottile/pyupgrade
36-
rev: v2.4.4
36+
rev: v2.32.0
3737
hooks:
3838
- id: pyupgrade
3939
args: [--py3-plus]

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ verify_ssl = true
66
[dev-packages]
77
pytest = "*"
88
tox = "*"
9-
flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml
10-
black = "==20.8b1" # also bump this in .pre-commit-config.yaml
9+
flake8 = "==4.0.1" # also bump this in .pre-commit-config.yaml
10+
black = "==22.3.0" # also bump this in .pre-commit-config.yaml
1111
pre-commit = "*"
1212
pytest-rerunfailures = "*"
1313

src/pytest_html/hooks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55

66
def pytest_html_report_title(report):
7-
""" Called before adding the title to the report """
7+
"""Called before adding the title to the report"""
88

99

1010
def pytest_html_results_summary(prefix, summary, postfix):
11-
""" Called before adding the summary section to the report """
11+
"""Called before adding the summary section to the report"""
1212

1313

1414
def pytest_html_results_table_header(cells):
15-
""" Called after building results table header. """
15+
"""Called after building results table header."""
1616

1717

1818
def pytest_html_results_table_row(report, cells):
19-
""" Called after building results table row. """
19+
"""Called after building results table row."""
2020

2121

2222
def pytest_html_results_table_html(report, data):
23-
""" Called after building results table additional HTML. """
23+
"""Called after building results table additional HTML."""

testing/test_pytest_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def pytest_configure(config):
823823
"content,expected_content", _test_environment_list_value_data_set
824824
)
825825
def test_environment_list_value(self, testdir, content, expected_content):
826-
expected_html_re = fr"<td>content</td>\n\s+<td>{expected_content}</td>"
826+
expected_html_re = rf"<td>content</td>\n\s+<td>{expected_content}</td>"
827827
testdir.makeconftest(
828828
f"""
829829
def pytest_configure(config):

0 commit comments

Comments
 (0)