diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5757483..d72169dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,16 @@ repos: - repo: https://github.com/psf/black - rev: 20.8b1 # also bump this in Pipfile + rev: 22.3.0 hooks: - id: black args: [--safe, --quiet] - repo: https://github.com/asottile/blacken-docs - rev: v1.7.0 + rev: v1.12.1 hooks: - id: blacken-docs - additional_dependencies: [black==20.8b1] # also bump this in Pipfile + additional_dependencies: [black==22.3.0] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 + rev: v4.1.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -19,21 +19,21 @@ repos: - id: check-yaml - id: debug-statements language_version: python3 - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 # also bump this in Pipfile + - repo: https://github.com/PyCQA/flake8 + rev: 4.0.1 hooks: - id: flake8 language_version: python3 additional_dependencies: - flake8-builtins==1.5.3 - - flake8-typing-imports==1.9.0 + - flake8-typing-imports==1.12.0 - repo: https://github.com/asottile/reorder_python_imports - rev: v2.3.0 + rev: v3.0.1 hooks: - id: reorder-python-imports args: ["--application-directories=.:src:testing", --py3-plus] - repo: https://github.com/asottile/pyupgrade - rev: v2.4.4 + rev: v2.32.0 hooks: - id: pyupgrade args: [--py3-plus] diff --git a/Pipfile b/Pipfile index 800e84c3..58ceb8cb 100644 --- a/Pipfile +++ b/Pipfile @@ -6,8 +6,8 @@ verify_ssl = true [dev-packages] pytest = "*" tox = "*" -flake8 = "==3.8.4" # also bump this in .pre-commit-config.yaml -black = "==20.8b1" # also bump this in .pre-commit-config.yaml +flake8 = "==4.0.1" # also bump this in .pre-commit-config.yaml +black = "==22.3.0" # also bump this in .pre-commit-config.yaml pre-commit = "*" pytest-rerunfailures = "*" diff --git a/src/pytest_html/hooks.py b/src/pytest_html/hooks.py index 7b75120b..f81f9e25 100644 --- a/src/pytest_html/hooks.py +++ b/src/pytest_html/hooks.py @@ -4,20 +4,20 @@ def pytest_html_report_title(report): - """ Called before adding the title to the report """ + """Called before adding the title to the report""" def pytest_html_results_summary(prefix, summary, postfix): - """ Called before adding the summary section to the report """ + """Called before adding the summary section to the report""" def pytest_html_results_table_header(cells): - """ Called after building results table header. """ + """Called after building results table header.""" def pytest_html_results_table_row(report, cells): - """ Called after building results table row. """ + """Called after building results table row.""" def pytest_html_results_table_html(report, data): - """ Called after building results table additional HTML. """ + """Called after building results table additional HTML.""" diff --git a/testing/test_pytest_html.py b/testing/test_pytest_html.py index 69341caf..b13dd4c6 100644 --- a/testing/test_pytest_html.py +++ b/testing/test_pytest_html.py @@ -823,7 +823,7 @@ def pytest_configure(config): "content,expected_content", _test_environment_list_value_data_set ) def test_environment_list_value(self, testdir, content, expected_content): - expected_html_re = fr"content\n\s+{expected_content}" + expected_html_re = rf"content\n\s+{expected_content}" testdir.makeconftest( f""" def pytest_configure(config):